schmittjoh / JMSI18nRoutingBundle

Allows you to internationalize your routing
http://jmsyst.com/bundles/JMSI18nRoutingBundle
357 stars 159 forks source link

Updated LocaleChoosingListener #124

Closed Brammm closed 7 years ago

Brammm commented 10 years ago

This PR ties in with my previous one, introducing the i18n_prefix option. When requesting example.com/ the bundle would redirect to example.com/en/ (or the most appropriate locale). However, it didn't do so when requesting example.com/i18n_prefix/.

The listener will now check if the requested path is a "landing" path that matches '' or any of the prefixes used. If so, it redirects to the correct url with the necessary locale.

Brammm commented 10 years ago

On a slightly related note, I'm guessing the i18n_prefix would belong in a 1.2.0 tag? Any clue when this would be released?