Reply To: Outbound rule for Internationalize your URLs

Splash Forums Rewrite Users Outbound rule for Internationalize your URLs Reply To: Outbound rule for Internationalize your URLs

#27157

acm
Participant

Hello. I have the exactly same problem. I have also observed that if add, for example, a rule like .addRule(Join.path("/{path}").to("/faces/{path}.xhtml")) before the rule that uses LocaleTransposition everything work as expected. Reading the code I could only get to the same conclusions @brnovais had arrived. I hope this could give some insights on where the problem is.

On a different topic, in the translate method of the LocaleTransposition class bundleMap.containsKey and bundleMap.put are used. Isn’t it safer to use bundleMap.putIfAbsent?