Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable 404 Error Handling for Userfunc #583

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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