Internal links not working anymore after the first language switch
-
Hello!
I very much appreciate your help – I am desperate…
I created a website with the Beaver Builder and translated it with TranslatePress (Personal) from German into English, using English as default language but German as the first language. It worked well and I was pleased.
However, there are quite a few internal links and I now detected that they do not work anymore after the first switch of the language (I enabled “Force language in custom links” in the settings). If I follow an internal link on a German page for the first time, an “/en/” is added to the HTML Code of that specific link in the default language (English) – e.g. “<p class=”gross”><i><strong><a href=/en/“https://www.wp.we-care.ch/en/medical-treatment”/…” (and the code is marked as being incorrect) instead of “<p class=”gross”><i><strong><a href=”https://www.wp.we-care.ch/en/medical-treatment”…”. If I then try to follow that link in the default language English, I get “Sorry, this page does not seem to exist” (because the HTML code is incorrect). If I deactivate “Force language in custom links”, following the internal link on the German page takes me to the English page.
I am very thankful for any suggestions to try out because I have no idea how to solve this issue. Have a good day!
- The topic ‘Internal links not working anymore after the first language switch’ is closed to new replies.