Announcement Announcement Module
Collapse
No announcement yet.
Redirecting to default-login-url when user is logged in Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Redirecting to default-login-url when user is logged in

    How would you configure an app so that when the login-page is accessed by someone who is already logged in, it redirects to the default-target-url?
    Thanks in advance for your help.

  • #2
    Has anyone implemented this behavior?

    Comment


    • #3
      Map the login page URL to a controller and add the logic in there. Check if the user is authenticated (the SecurityContextHolder contains a non-anonymous Authentication object). If it does, redirect them to the page you want, otherwise display the login view.

      Comment

      Working...
      X