yaml - Local translation symfony -


i have problem in logout , wont detect local language , return default 1 here firewall

        logout:             path:   logout             target: /%locale%/siivt/ 

and here root

        logout:             pattern:   /{_locale}/deconnection 

it return fr local while connexion work fine more clear when navigate in english version of site , after loging off return site in french local want keep local

it because %locale% point default locale configured in parameters.yml.

if %locale% (default locale) equals fr route fr/siivt always.

to solve problem recommend store locale in session , generate urls independent of current locale. , make controller switch locale , return last viewed page.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -