Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where internal hyperlinks do not point to the corresponding secondary language version of the page when translating content. The hyperlinks remain the same as in the main language, despite using the Translate Link Targets tool.
Solution:
If you're experiencing this issue and are using the Advanced Translation Editor (ATE) to translate your content, we recommend following the steps described in our guide on translating links with Advanced Translation Editor.

Please note that the solution provided might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please do not hesitate to open a new support ticket with us for further assistance.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 5 replies, has 2 voices.

Last updated by Carlos Rojas 10 months, 2 weeks ago.

Assisted by: Carlos Rojas.

Author Posts
March 14, 2024 at 2:14 pm #15410483

Alexander

Hello! I have noticed that the internal hyperlinks do not point to the corresponding secondary language version of the page. The hyperlinks are dynamically set in the WYSIWYG editor with its hyperlink button. But when translating the page to the secondary language, the hyperlinks stay the same as in the main language and there are pointing to the main language. I have tried using the Translate Link Targets tool, but it doesn't do anything. What am I missing?

1tWLo18qjM.jpg
Z3YkjJ0mhS.jpg
March 14, 2024 at 2:34 pm #15410579

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
Thank you for contacting us

If you are using the Advanced Translation Editor (ATE) to translate the content, then I recommend you follow the steps described in this guide: https://wpml.org/announcements/2020/02/translating-links-with-advanced-translation-editor/

Regards,
Carlos

March 14, 2024 at 2:40 pm #15410651

Alexander

Ah, yes, thanks! That worked. But why aren't these fields visible by default in the ATE? And why doesn't WPML automatically add the /en/ on all hyperlinks on the secondary language page?

March 14, 2024 at 2:43 pm #15410660

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Great!

These fields are not visible for many reasons. In the case of the links, some of them are automatically translated by WPML and some are not, it depends on the configuration of the elements that carry the link, the type of link, where this link points to, etc. And these links need to be manually translated, therefore you will need to add the language directory.

March 14, 2024 at 2:45 pm #15410763

Alexander

Alright thanks for the support! My issue is solved 🙂

March 14, 2024 at 2:50 pm #15410795

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.

Have an excellent day!