This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing issues with links not appearing correctly in the English translation of their German website. The links either did not copy over or were empty, causing them to just reload the page instead of redirecting. Solution: We recommended the following steps to resolve the issue: 1. Edit the content in the original language. 2. Make a small change in the content, especially in the links. 3. Save the changes and update the translation. 4. Double-check if the issue disappeared. Additionally, we advised the client to: - Click on the links and add a space at the end of each link mentioned. - Go to WPML -> Settings -> Translate Link Targets -> Click on 'Scan now and adjust links', wait for the process to finish, and double-check the results.
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 problems persist, 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:
I am trying to translate a site from German (hidden link) to English (hidden link).
Symptoms:
Most of the links are gone in the translation process. I expected to see links copied to the translation, but instead, I got elements without a link.
Questions:
Why are the links not appearing in the translated page?
How can I ensure that links are copied correctly during translation?
I have visited both sites and I can see the links correctly. If you still see the problem when translating the content I'd recommend following these steps:
- Edit the content in the original language
- Make a small change in the content, especially in the links
- Save the changes and update the translation
- Double-check if the issue disappeared
It's only working for a handful of links. On hidden link, link 2, 3 and 7 aren't working, they appear to have a link but they are empty and just reload the page.
I did that with the small changes several times and just repeated it. But with the same result as before.
I also checked for any issues in the code, like leaking html tags and such but I don't see any problems there either. All the links start with https:// and should thus be easily identifieable by WPML.
I will need to take a look at the site configuration. I have set your next message private so you can securely share the access credentials to the site.
Please don't forget to create a full backup of the site before sharing the credentials.
Will do that later. In the meantime I found a difference between pages where it works and that where it doesn't work. Find attached two screenshot: the one where it's working the elements are correctly identified as text elements; in the one where it's not working the elements are marked as wpml_string_wrapper: content.
However, both sites I compared are identically regarding layout: hidden link (working) vs. hidden link (not working).
I updated all plugins and I changed the structure of the page by taking the titles out of the text elements and placing them standalone in their element. However, none of this solved the problem.
After following the steps I described in this message https://wpml.org/forums/topic/links-gone-in-translations/#post-16439944 the issue seems to be solved on both pages. Could you double-check if there are still incorrect links on one of those translated pages, and if so, then let me know which one?
- Edit the content in the original language
- Click on the links and add a space at the end of each link mentioned
- Save the changes
- Update the translation
- Double-check if the issue disappeared
I also recommend going to WPML -> Settings -> Translate Link Targets -> Click on 'Scan now and adjust links' -> Wait for the process to finish and double-check the results.