Re: SEO URL supporting l10n/i18n with PrettyFaces

Splash Forums PrettyFaces Users SEO URL supporting l10n/i18n with PrettyFaces Re: SEO URL supporting l10n/i18n with PrettyFaces

#23444

A thought about how to achieve this with Rewrite. I think something like this can work:

.addRule(
Join.path("/{lang}/{path}")
.where("lang").bindsTo(El.property("localeBean.lang"))
.where("path").matches(".*")
.to("/{path}")
)

Rewrite 2.0.0.Alpha3 ships with a compatibility module for PrettyFaces. This means you will be able to remove PrettyFaces 3.x and replace it with Rewrite without having to change much of your code.