You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
redirects to english (if no redirect is enabled then the english content is served under /de/)
show german content
Always prioritize url over session and http header, only use them when the language is not clear from the url.
If hide_default_locale_in_url is false register an additional url that redirects to the right url (or if no redirect is enabled, serves the content based on session -> header -> default)
Hey ty for the library, maybe some Ideas.
When using the following config I would suggest this changes:
localization.php
Always prioritize url over session and http header, only use them when the language is not clear from the url.
If
hide_default_locale_in_url
isfalse
register an additional url that redirects to the right url (or if no redirect is enabled, serves the content based on session -> header -> default)Examples (redirect)
http://php.net/manual/function.echo.php -> http://php.net/manual/en/function.echo.php (based on header first time probably and after that cookie)
https://developer.mozilla.org/docs/Web/HTML/Element/a -> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
Example (no redirect):
https://support.google.com/webmasters/answer/93633 shows language based on google account or headers probably
https://support.google.com/webmasters/answer/93633?hl=de shows german content
https://support.google.com/webmasters/answer/93633?hl=en shows english content
The text was updated successfully, but these errors were encountered: