Re: How to get client current URL?

Splash Forums PrettyFaces Users How to get client current URL? Re: How to get client current URL?

#23177

I’m not sure if I understand your question. What do you mean with current URL?

If you map /mypath to /faces/mypath.xhtml and access the page by entering /mypath in the browser, you will get /mypath when calling the code I posted before.

What do you mean with previous URL? Something like the referrer header? Could you share some code?