Background of the issue:
I have translated the site from Dutch to English using WPML. The site URL is hidden link. I added /en/ before all the English URLs in the translation editor.
Symptoms:
All the cases on the English cases page are still linking to the Dutch versions.
Questions:
How can I fix the issue where the English cases page links to the Dutch versions despite adding /en/ before the English URLs in the translation editor?
Thank you for contacting WPML Support, I will gladly help you.
1. I've checked your website and when trying to switch languages it gives an "Internal Server Error". The same happens even when I try to open a link (without changing language).
Usually, the 500 errors (Internal Server Errors) are related to the server configuration or server limitations being reached.
Thanks for your reply! The 500 errors are fixed now but some cases on the english cases page still link to the dutch case. And also the "next" case at the bottom of a single case links to the dutch case
I've already saved the permalinks a few times, but its not working
1) If the issue with the 500 error continues, I suggest checking the information on this link.
2) Related to the links pointing to the wrong translations, please:
- go to WP-Admin -> WPML -> Settings -> Translate Link Targets section
- click on the button "Scan now and adjust links" and wait for the process to finish
After, clear the website cache (server-side included) and check if the issue persists.
However, some links still aren't working correctly in the translations. For example, on the English homepage, the first four cases are linked to /en/case/.., which navigates away from the site since it doesn't include the full site URL. Additionally, at the bottom of a single case page, the link to the next case either points to /en/case/.. or to the Dutch case.
From what I noticed original link added to an Elementor widget has the complete link with all details and not a relative link.
Example: "/case/renessence/" instead of: hidden link
Try changing them to a complete link and check if the translations work, otherwise, you will need to translate them manually form WPML -> String translation.
Let me know if you have further questions or need further assistance.
Kind regards,
Marsel
The topic ‘[Closed] Translating URLs’ is closed to new replies.