Details
-
Story
-
Status: Approved
-
Should
-
Resolution: Fixed
-
None
-
None
-
Undetermined
Description
Occasionally you will get a MissingRequiredParameterException after successful login, this is because when a user visits a page that requires a certain request parameter and clicks the logout button, the LogoutServlet in the platform redirects then to the index page with the referer header set to the the page they were viewing, but the index(home) page controller in the reference application will also redirect them to the login page since they are no longer authenticated, it appears like web browser maintains the same referer header on redirects implying that when the user successfully logs in, they will get redirected to the page they were viewing when they logged out.
Solution:
LoginController.getRedirectUrlFromReferer in the reference application module needs to preserve the query string of the referer URL