August 29, 2019, 12:24pm
Two languages configured: en and de.
When I visit
website.com it forwards me to the correct language slug, depending on my browser language:
website.com/de or website.com/en (default language)
However if I visit a subpage url with the same slug for both languages (for example a perosnal name that doesn’t get translated)
without a language slug it always forwards me to the default language version of the subpage:
With my browser language set to German, visiting
website.com/famous-actor forwards me to website.com/en/famous-actor. Intended forward: website.com/de/famous-actor.
Language detection works on only homepage (
/) as you can see in code comment on line 128
August 29, 2019, 12:57pm
I saw that but I couldn’t believe that this is the intended default behavior. I understand that redirecting
example.com/en/famous-actor to example.com/de/famous-actor
might not be a good idea. But
example.com/famous-actor to example.com/[detected-language-slug]/famous-actor
would make sense, wouldn’t it? It is an edge case because a lot of slugs can be translated and translated slugs do get redirected to the correct language.
If you want to redirect all pages to their equivalent in the detected languages, you can achieve this with routes. Kirby doesn’t do this automatically.