symfony/demo

Add switch language in homepage

DEL-TRONIK opened this issue · 1 comments

If the header is displayed in the default homepage, the path for the default language in the language switcher doesn't work and returns / instead of /en.

I'd say this is the expected behaviour.

The RedirectToPreferredLocaleSubscriber is, in that case, responsible to.... redirect the requests to the URL matching the user's preferred locale (which could totally be "english")