Replies: 2 comments
-
Hello, you can fetch the error page’s content from an existing controller, using JavaScript or |
Beta Was this translation helpful? Give feedback.
-
You can add a priority on listeners
|
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I'm using Symfony 5.4 and I need to customise error pages.
When the user is not logged in I want to throw a generic page without the application layout and when he is logged in the application layout with an error message.
My main issue is that the Security component is not available on 404 pages because of listeners' order,
Do you know a method to circumvent this ?
As my app.user in twig ends up always being null
I've tried to search online but no solutions seemed satisfying with my issue
Beta Was this translation helpful? Give feedback.
All reactions