Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Noman 10 months ago.

Assisted by: Noman.

Author Posts
August 4, 2024 at 11:16 am

nadiaM-5

Background of the issue:
For a very long time we have been experiencing issues with in-text internal links to translated content not being updated automatically. These are simple in-text links for which we apply the appropriate tags in the translation editor. We knew this was an issue so we were happy to read that there was a fix released for this (see here: https://wpml.org/forums/topic/updating-internal-links-elementor/). However, we are running the latest version of WPML and string translation editor and the issue seems to persist for us. I also looked at https://wpml.org/errata/elementor-pro-link-translation-issue-with-menus-and-global-widgets/ but this seems to not be about in-text links. After releasing a German translation of a text that is originally Dutch, the in-text links in the German translation still point to the original Dutch text. We have ran the "translate link targets" under the settings page. It says 'all messages and strings processed. 0 links are changed to point towards translated content'.

Symptoms:
When clicking the in-text link under the header "Die Route von Nord- nach Südjordanien" I expect to go to the german version of the linked page. Instead I get to the Dutch version (original language) of the linked page, and I need to click the language switcher again to get back to the german page.

Questions:
Why are in-text internal links to translated content not being updated automatically?
Why does the 'translate link targets' feature report '0 links are changed to point towards translated content'?
How can we ensure that in-text links in translated content point to the correct language version?
Is there a way to prevent manually updated links from being overwritten when a translation is updated?

August 4, 2024 at 1:39 pm
August 11, 2024 at 3:08 pm #16059620

nadiaM-5

Hello,

I have been able to find out that the çode snippets' plugin is causing a conflict with WPML causing links not being updated to their translated pages. On the staging site I have disabled the code snippet plugin (and kept everything else the same) and it now says i updates 400 links.
I was assuming this would solve my problem, however, for a strange reason the link is still pointing towards the Dutch original language on the page itself?

I don't have a caching plugin so not sure why this is? Could you please look into it? Credentials provided for the staging site are still valid.

August 11, 2024 at 5:22 pm #16059809

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for isolating the cause of this issue. Yes, I can see the issue in the below page: hidden link

So, I’ve followed the below steps:

1. Opened the above post in the default language as Edit mode and found out that the German translation needs updating that's why the link is not updated correctly as you can see in the attached screenshot.

2. So, I opened the German language in the WPML Translation Editor, completed the translation, pressed the complete button and it showed the correct link in the German language also. Could you please try the same steps and see if this resolves the issue.

3. If the issue persists, please try to follow the below procedure:

3.1. Please open the default language page in Edit mode.

3.2. Make a small change, for example, add a space or + sign in your page/post title.

3.3. Update the page by pressing the “Update” button.

3.4. Now, please remove that small change that did in step #3.2.

3.5. Update the page again.

3.6. Now, please try to open the translated page in WPML Translation Editor and make sure the translation is 100% complete and press the complete button.

Please let me know if this resolves the issue or if you need further assistance with this issue.

Thank you for your cooperation

German page needs update.png
translation complete 1.png

The topic ‘[Closed] Elementor Pro in-text links do not update to foreign language’ is closed to new replies.