Home›Support›English Support›[Resolved] After automatic translation internal links redirect to original language
[Resolved] After automatic translation internal links redirect to original language
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.
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?
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?
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?
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 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.