Reply To: I18n approach: Language in URL

Splash Forums Rewrite Users I18n approach: Language in URL Reply To: I18n approach: Language in URL

#27474

I guess outbound rewriting will work if you add an explicit lang param to the link. Something like:

<h:link outcome="/web/page/imprint.xhtml">
  <f:param name="lang" value="#{currentViewLanguage.language}" />
  Imprint
</h:link>

Another thing? What’s the reason for the implementation of CurrentViewLanguage.setLanguage()? That looks strange. The argument of the method is ignored and you read the language from the ViewRoot??