schmittjoh / JMSI18nRoutingBundle

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

How to use multiple hosts except in admin routes #136

Open mrcmorales opened 9 years ago

mrcmorales commented 9 years ago

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

jkabat commented 9 years ago

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.