6 Replies Latest reply on Apr 12, 2012 11:03 AM by serkan

    Redirect after login and logout to the same page

    kwutzke

      I have a login panel on every page. Upon login and logout I simply want to redirect to the same page the user is currently on.


      There's actually enough stuff in the Seam docs and forums to solve this. I believed to solve this via components.xml:


      <event type="org.jboss.seam.security.postAuthenticate">
        <action execute="#{redirect.returnToCapturedView}"/>
      </event>
      



      but it does absolutely nothing. When logging in and then reloading the page I get that dreaded browser popup.


      Shouldn't the above work? Is there something missing, e.g in my config?


      Alternative solution?


      Karsten