Reply To: Adding language code in the page adress – Multi-language url rewiting

Splash Forums PrettyFaces Users Adding language code in the page adress – Multi-language url rewiting Reply To: Adding language code in the page adress – Multi-language url rewiting

#27446

Hi There,

I believe your issue is related to the fact that you are likely using the JSF Page Navigation system — You need to issue a page redirect in order to change the URL after navigation using the language picker you’ve implemented.

This page has a good explanation of the difference between Forward (the default) and Redirect (what you need).

https://www.mkyong.com/jsf2/jsf-page-forward-vs-page-redirect/

Hope this helps.

Additionally, consider using Rewrite (the library PrettyFaces is built on) for internationalization:

https://github.com/ocpsoft/rewrite/blob/master/documentation/src/main/asciidoc/configuration/i18n.asciidoc

Thanks,
Lincoln