Hi;

I have a custom 403 error page, it is not redirecting correctly.

- the default 403 redirects correct, an anonymous user requests a page they don't have access to, they get redirected to the 403 page & get the login prompt... if they log in, they automatically get redirected to the page they had originally requested.

However:

My custom 403 redirectd the user back to the 403 page after they successfully log in, not the original page they requested.

Obviously, the stock 403 has some code passed back and forth to correctly pass the requested page to the login and not my 403.... so:
where do I find this default code and how do I integrate it into my custom page.

-thanks
-sean

Comments

cog.rusty’s picture

You are right, a login on an "access denied" page stays on the custom "access denied" page. This must be a core bug but I didn't find any related bug report or any work on this (I didn't search much), besides some forum threads attempting various hacks without much success.

sean69’s picture

Hum, if I do a search in bugs/issues pages I see stacks of issues related to 404/403 handling, but nothing solid for this prpoblem nor any solutions [except for some work on Drupal 7]

Anyone have any solutions that work?