-
Notifications
You must be signed in to change notification settings - Fork 127
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
Override core 404 handling to prevent subsequent pageNotFoundAndExit() #510
Comments
I do not understand this. Please, explain better. |
Let's say I have a public page "/products" and a subpage "/products/for-members" that is only accessible to one usergroup. This is exactly the behavior I want. But I also want proper 404 handling. So when a user visits the page "/products/foo" or "/bar" I want to display a nice 404 page. Now setting realurl to the rescue! So in short, this is what I want and what the PR would support:
|
@dmitryd : did this make any sense to you? I think this would be a really useful feature. |
You can provide your own 404 page using TYPO3 config at this point using |
But that is precisely the point: if |
The default core handling of inaccessible pages (due to access restrictions) is fallback content. For this to work this must be empty:
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFound_handling'] = ''
When I need to show a pretty 404 page if a page doesn't exist, then the same config must not be be empty.
This is a problem if I want both handlings (fallback on access denied, 404 on page doesn't exist).
This is fixed in #509
The text was updated successfully, but these errors were encountered: