JMSI18nRoutingBundle icon indicating copy to clipboard operation
JMSI18nRoutingBundle copied to clipboard

How to use multiple hosts except in admin routes

Open mrcmorales opened this issue 10 years ago • 1 comments

Hi,

I'm using multiple hosts, one for every locale.

I want change the locale in /admin routes without change the host because then symfony require me login again.

Is possible?

Thanks

mrcmorales avatar Nov 20 '14 11:11 mrcmorales

In case you have different subdomains for each locale, you can use symfony session settings to solve your problem with authorization:

http://www.elao.com/fr/blog/subdomains-symfony2-2-session-authentication

Otherwise you can use "_locale" parameter to force generation of URL for specific locale.

jkabat avatar Nov 20 '14 12:11 jkabat