Good evening all.
Is there a standard way to do the redirection/rewrite of a specific url to a different one?
Imagine an user accessing the following view: http://www.something.com/us/download.xhtml?id=2
I want to set the Locale from the previous view and redirecting to http://www.something.com/download.xhtml?id=2
<page view-id="/us/download.xhtml*" action="<action to set the locale>">
<navigation>
<redirect view-id="#{facesContext.viewRoot.viewId}" />
</navigation>
</page>
Well, basically, i want to set the locale (example: us), passed on the viewId /us/download.xhtml and redirect to viewId without locale reference.
Thanks