Skip to content

Conversation

@jmtpix
Copy link

@jmtpix jmtpix commented Dec 14, 2017

Because of some old content in the Google Index i tried to get a 404 Error for no longer existing subpages configured via userfunc in the fixedPostVars.
So I update the UrlDecoder Class and added the following to the realurl configuration:
array(
'GETvar' => 'myVar',
'enable404forInvalidAlias' => 1,
'userFunc' => ....
)

If there was already an existing way to do this, I'm sorry I wasn't able to find it. :)

Because of some old content in the Google Index i tried to get a 404 Error for no longer existing subpages configured via userfunc in the fixedPostVars.
So I update the UrlDecoder Class and added the following to the realurl configuration:
GETvar' => 'myVar',
'enable404forInvalidAlias' => 1,
'userFunc' => ....

If there was already an existing way to do this, I'm sorry I wasn't able to find it. :)
If you try to encode, for example a hidden translation of something in your own extension, it is useful to reset it to the previous value.
Before I changed this file, the requested uid was returned.
That was wrong I'm sorry - with my change i got wrong entries for the previous value.
@dmitryd
Copy link
Owner

dmitryd commented Apr 2, 2018

Why can't userFunc throw error itself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants