Reply To: Handling Multilanguage JSF Application with Rewrite

Splash Forums Rewrite Users Handling Multilanguage JSF Application with Rewrite Reply To: Handling Multilanguage JSF Application with Rewrite

#23979

zozan
Participant

Thanks @lincoln and @Christian I used the approach you provided. Now I want to redirect to myDefaultLang/home when end user enters my domain. I use the following rule for it:`
.addRule()
.when(Path.matches(“/”))
.perform(Redirect.temporary(context.getContextPath() + “/{lang}/Home”))
.where(“lang”).bindsTo(…)
`
How do I bind lang parameter to my localeBean.getLang() in rewrite to avoid recieving a null parameter for lang?

  • This reply was modified 8 years, 7 months ago by  zozan.
  • This reply was modified 8 years, 7 months ago by  zozan.