Announcement Announcement Module
No announcement yet.
Redirect question Page Title Module
Move Remove Collapse
This topic is closed
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Redirect question

    A very handy feature is with acegi I can directly acces the login page. The defaultTargetUrl is page where the user will be sent if it directly accesses the login page, but I want to to something more tricky. For example when user with admin role log in, he should be redirect to special admin page, but when normal user log in, he will be redirected to his main page... etc. Is there any easy way to do that? And my another question, can I set something that will always (no matter which url user want to acces) redirect user to the same main page?

  • #2
    Sounds like you would have to implement a custom AuthenticationProcessingFilter that would interrogate the principle and then decide which page to redirect to.


    • #3
      I've found very good tutorial:
      It's great , it was mensed here

      Thx for help