Re: PrettyFaces inbound rule not working

Splash Forums PrettyFaces Users PrettyFaces inbound rule not working Re: PrettyFaces inbound rule not working

#22643

If a URL matches the pattern part of a rule the request is internally forwarded to the viewId URL. This forwarded request doesn’t know anything about the pretty URL anymore and for application code it looks like the user accessed the ugly URL.

So if your are storing the requested URL in the session for unauthenticated users, you are actually storing the ugly URL, which is surely not your intention. But there is still a way to obtain the original pretty URL using this code:

PrettyContext.getCurrentInstance().getRequestURL().toString()

So if you use this code to obtain the original pretty URL and store this one in the session map, everything should work fine. :)

Regarding your Seam question. Could you perhaps open a separate topic for this and describe in details what is not working as expected?

Christian