automatic and wrong redirect to english language
-
i have a wordpress page with two languages. german and english. german is the default language.
i have a page with the title “filme 2015” (german) and “films 2015” (english).
the URL of the german page is: https://crossroads-festival.org/programm/filme2015
however, if i enter this url manually in the browser, it automatically redirects to some sort of english version of the page:
https://crossroads-festival.org/en/programm/filme2015
i say “some sort of” because note the following things on the redirected url: 1) the
en/
gets added in front. so it tries to redirect to the english version of the page, however 2) it adds the german slugsprogramm
andfilme2015
at the end. the correct english versioni dont know why wordpress tries to add
en
to the url when i manually visithttps://crossroads-festival.org/programm/filme2015
.i think the reason is the following: due to cookie-setting, wordpress thinks i am on the english version of the page and therefore tries to add
en/
to the url.. how can i avoid this?after doing some more digging i read this article: https://qtranslatexteam.wordpress.com/2015/02/26/browser-redirection-based-on-language/
and i think it explains my issue: since the urlhttps://crossroads-festival.org/programm/filme2015
has no language encoded, and due to the language cookie the language is set to english, wordpress tries to get the english version of the page. however, it does so wrong, because it only adden/
to the url, but does not use the english slugs…is this a bug?
- The topic ‘automatic and wrong redirect to english language’ is closed to new replies.