Re: spring-security-redirect problem with facesContext.externalContext.requestServle

Splash Forums Rewrite Users spring-security-redirect problem with facesContext.externalContext.requestServle Re: spring-security-redirect problem with facesContext.externalContext.requestServle

#21741

Oh, sorry! I misunderstood your post.

This should be very easy. You can use the PrettyContext to access the original URL:

String url = PrettyContext.getCurrentInstance().getRequestURL().toURL()

But this URL won’t include the query parameters. But if I remember correctly there is a method in PrettyContext that returns the query parameters too.

Does this fit your needs?

Christian