Skip Navigation

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

Problem:
After using WPML's automatic translation feature, some internal links on the client's website were redirecting to the original language pages instead of the translated versions. The client was unable to fix this using the automated link target option or manually correct them through the string translation tool.
Solution:
1. We asked the client to check if the URLs in the original content were full URLs, as WPML handles full URLs better.
2. We requested access to the site to troubleshoot directly.
3. After gaining access, we performed some database troubleshooting and instructed the client to update all outdated plugins and themes. The link for updates was provided: https://stil-fit.com/wp-admin/update-core.php
4. We directed the client to go to WPML -> Settings -> Translate Link Targets and click on the 'Scan now and adjust links' button.
5. We updated the Spanish translation of the page, which automatically updated the links. This issue occurred because the page for all products was translated before the products themselves, so WPML didn't have the translated links available initially.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

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.

Tagged: ,

This topic contains 8 replies, has 1 voice.

Last updated by Carlos Rojas 2 weeks, 2 days ago.

Assisted by: Carlos Rojas.

Author Posts
May 19, 2025 at 7:48 pm #17050372

Basil Lazarowicz

Background of the issue:
We have translated our website from the original language (German) to several other languages using the automatic translation feature of WPML. We are trying to ensure that internal links redirect to the correct language versions of the pages.

Symptoms:
After automatic translation, internal links redirect to the original language pages instead of the translated versions. Attempts to fix this using the automate link target option have been unsuccessful. The string-translation tool does not show the incorrect links for manual correction.

Questions:
What can we do to ensure that internal links redirect to the correct language versions after automatic translation?

May 20, 2025 at 2:28 pm #17053249

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hello,
Thank you for contacting us

Before one of my colleagues continues with this ticket, I would like to ask you to check if the URLs in the original content are partial URLs or full URLs. Sometimes WPML doesn't pick the partial URLs, so it is better to use full ones.

Also, could you tell us if the issue happens with all links or only some links?
Are you using a page builder like Elementor, Gutenberg, etc?

May 21, 2025 at 9:00 am #17055965

Basil Lazarowicz

Hi Carlos,

thanks so much for reaching our. The URLs are full ones.

We use the Flatsome Theme and their internal page builder.

Not all links are wrong. Just some of them.

I tried to correct them manually by looking the links up in the string translation. But now I also cannot search for the links anymore.

Is there a chance I can give you access to the backend and you have a look?

Thanks

Basil

May 21, 2025 at 1:02 pm #17057470

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi Basil,

1.- Yes sure! I have set your next message private so you can securely share the access credentials to the site.

Please confirm you created a full site backup that you can restore if necessary.

2.- Also, share a URL and point to one of the untranslated links. This will help me reproduce the issue faster.

Looking forward to your message.

May 22, 2025 at 7:23 am #17059751

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi Basil,
Thank you for sharing the information requested.

1.- I ran some troubleshooting steps and fixed a problem in the database.

2.- Please update all outdated plugins and themes that appear in this link: hidden link

3.- Go to WPML -> Settings -> Translate Link Targets -> Click on the 'Scan now and adjust links' button and wait for the process to finish (this will take a while)

4. I can see the issue with the 'Saber más' button in Spanish; however, I don't see the issue in English. The difference between these two languages is that Spanish is hidden. If you run all the steps I described above and unhide the Spanish language, does the issue persist in the Spanish buttons?

Looking forward to your message.

May 25, 2025 at 10:27 pm #17070621

Basil Lazarowicz

Dear Carlos,

we tried all those steps - but still the same problems.

We also tried unhiding the Spanish version - same issue with the links.

Do you have any other idea?

How can we manually search for those links and adjust them? (Without just going through any website)
There used to be menu where we could see the links and just toggle between the languages. (I believe it was in the string translation) But can't find it anymore. The WPML menu also looks different now.

I truly hope you do have a solution.

Thanks

Basil

May 26, 2025 at 7:58 am #17071422

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi Basil,
Thank you very much for your feedback

I updated the Spanish translation of hidden link and the links were automatically updated. This behavior happens when the page for all products was translated before the products, so WPML didn't have the translated links yet.

Please update the all products page in all the secondary languages and confirm the issue is solved.

May 28, 2025 at 9:34 am #17082448

Basil Lazarowicz

Dear Carlos,

thanks a lot for this solution. I did not have time yet to test it as I am traveling.

But will do so next week. But this sounds reasonable.

Will let you know.

Thanks

Basil

May 28, 2025 at 10:01 am #17082623

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi Basil,

I will be waiting for your message.
Have a safe trip.