Open PierrickMartos opened 11 years ago
do this : default_target_path: /%locale%/app/
and make sure you have in your config.yml the default_locale framework: .... default_locale: "%locale%"
Thanks for your answer but this only work if i want to set the default locale. I want to change the default_target_path with the user locale.
use a route name when you want it to be dynamic
Hi,
When i add {_locale} to the parameter : default_target_path the locale argument isn't load. For example, instead of having this url : /fr/app/ i have : %7B_locale%7D/app/
This bug seems to be fixed in symfony, see this issue : https://github.com/symfony/symfony/issues/861 but doesn't seems to work with FOSFacebookBundle.