Redirect login
Issue
Set the redirect.login to "true" and redirect.login.url to "Page2" (which is a child of Page1).
After login, Portal redirects to Page2, as configured. However, if not authenticated, and request Page3, which is also an authenticated page, Portal...
- Redirects to the Login page
- After login, redirects Page2, and not Page3
How to get to Page3?
Answer
Precedence is for redirect.login.url rather than the location specified in WasReqUrl, which is set when you request a secured page and it has to ask for login.
Use the ExplicitLoginFilter class to check for the WasReqUrl cookie, and if it exists, set a forward to WasReqUrl in the filter chain.