Redirecting To A New Page After Successful Login
Create user-specific redirects after user login. The specifications could be based on user type/role or based on a subscription date or even on first login.
Setup Login Redirect for Specific Users The first option on the settings page allows you to redirect only specific users. You can select a username from the drop-down menu. After that, you can enter the URLs to redirect a user on login and logout.
To redirect a user after a successful log in, select the redirection page from the list of menu links offered. Make sure that the menu item selected is a published menu item. Note: The same procedure is used for redirecting users on successful logout except you enter the page where you want to redirect successful logouts to where it says "Logout Redirection URL."
i have a problem to redirect user to the requested page after login. 1-this are my files:login.php,register.php,protected.php,plan1.php,member.php et plan2.php,home.php 2-plan1,plan2, and member have a check before people have access. 3-when a user click on plan1 for exemple and get redirect on
If you are using a gem that reads to URI for certain processing (like simple-navigation) the new URI will be '/users' even though you are at the '/welcome' URI (highlight is lost in simple-navigation and submenus are not rendered).. So the solution can be achieved with this:
A common requirement for a web application is to redirect different types of users to different pages after login.An example of this would be redirecting standard users to a /homepage.html page and admin users to a /console.html page for example.. This article will show how to quickly and safely implement this mechanism using Spring Security.