Re: Redirect to the saved first requested url after loggin.

Splash Forums PrettyFaces Users Redirect to the saved first requested url after loggin. Re: Redirect to the saved first requested url after loggin.

#20938

iyemane
Participant

Thanks for your time…

i think the problem is on the priority of the url pattern, even though the AuthenticationFilter is on the first order of the web.xml, it’s not executed first because the pretty filter ‘/*’ matches the requested…

<filter-mapping>

<filter-name>AuthenticationFilter</filter-name>

<url-pattern>/restricted/*</url-pattern>

<dispatcher>REQUEST</dispatcher>

<dispatcher>FORWARD</dispatcher>

<dispatcher>ERROR</dispatcher>

</filter-mapping>

<filter-mapping>

<filter-name>Pretty Filter</filter-name>

<url-pattern>/*</url-pattern>

<dispatcher>REQUEST</dispatcher>

<dispatcher>FORWARD</dispatcher>

<dispatcher>ERROR</dispatcher>

</filter-mapping>

Or I need to consider my security solutions…