Timeline for Craft 2: Serve language / locale i18n according to user agent
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 20, 2018 at 14:33 | comment | added | a-am | We do something similar with detecting a cookie we have set for a locale. So you could possibly default to the http header's language however if they have selected a different locale from the switcher that could set a cookie for their preference and you could use that to force the redirect in the future. The redirects may be different from above because you would be prioritizing the redirect logic. | |
Apr 20, 2018 at 8:52 | comment | added | Tobias S. | Would the user still be able to switch to EN with this configuration? Or would it be impossible because the .htaccess always referrs him to DE? | |
Apr 18, 2018 at 14:37 | history | answered | a-am | CC BY-SA 3.0 |