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

Define $error page on a folder basis #926

Closed
stephane-vanraes opened this issue Apr 8, 2021 · 1 comment
Closed

Define $error page on a folder basis #926

stephane-vanraes opened this issue Apr 8, 2021 · 1 comment

Comments

@stephane-vanraes
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently it is only possible to have one $error page (in the root of the project) but in various circumstances it can be nice to have a different error page depending on where you are in the application. (fe: in /products )

Describe the solution you'd like
Have the possibility to define a $error page per folder, in the same way we can define a $layout page per folder.

Describe alternatives you've considered
It is possible to use the page store to differentiate all this logic in the global $error page, just like one would do to differentiate between different status codes.

How important is this feature to you?
The current solution becomes very messy and unmanageable in large applications with custom error pages.

@stephane-vanraes
Copy link
Contributor Author

possible duplicate of #519 (which somehow didn't turn up in my initial search)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant