Re: Complex URL schema with i18n and l10n

Splash Forums Rewrite Users Complex URL schema with i18n and l10n Re: Complex URL schema with i18n and l10n

#22539

Why not do this? :)

Add another rule in your routing config:

@Override
public Configuration getConfiguration(ServletContext t) {
return ConfigurationBuilder.begin()
.addRule(Join.path("/{lang}").to("/WEB-INF/jsf/index.xhtml").where("lang").matches("(de|fr|it|rm)"))
.addRule(Join.path("/{lang}/login").to("/WEB-INF/jsf/login.xhtml").where("lang").matches("(de|fr|it|rm)"))
/* And so on ... */;
}

Would that do what you want?

~Lincoln