- Issue created by @littlepixiez
- @littlepixiez opened merge request.
If you log into a site, attempting to go to a page not found, like: /user/login?destination=/admin/people, you get a redirect error:
The page isnβt redirecting properly.
I believe this is because the navigation lock is trying to redirect too many times, and that we need to exit if the request is not the main request. I considered changing the priority, but I believe we still want access handling to kick in before the Legal page does?
1. Turn on the Legal module
2. Attempt to log in with the destination set to a page you do not have access to (/user/login?destination=/admin/people)
3. Witness the too many redirects error
Only run logic on the kernel request event subscriber on the main request.
Apply the code fix.
Active
4.0
Code