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.

#20933

iyemane
Participant

Thanks Christian, that’s a great structured help.

But still have some proplem with the AuthentiationFilter Class .

String uri = request.getRequestURI();

returns me the ViewId, ‘adminTasks.xhtml’

whereas I want it to return the original pretty url request ‘/admin/tasks?smt=smt’

It works using the PrettyContext class to get the RequestURL and QueryString, but to make sure if its elegant way.

Sorry, I was starting on the security…

Thanks