Skip Navigation

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

Problem:
The client was experiencing issues with internal links not being properly translated on their multilingual website. Some links in the French version of a page were correctly translated, but the Portuguese version and other translations were not working well, leading to 404 errors or linking to the original Spanish version instead of the translated pages.

Solution:

1. We recommended the client check by going to WPML -> Settings -> Translate Link Targets section and clicking on "Scan now and adjust links". This action should help in fixing the incorrect links after the scan is complete.

2. We requested temporary admin access to the client's website to investigate the issue, and upon receiving access and reviewing the site, we discovered that the links were not translated correctly in the Advanced Translation Editor (ATE). We corrected the links by removing spaces and setting the correct destination link.

3. We advised the client to check if the links were set correctly by opening the page in the translation language and clicking on the "Edit translation" button from the wp-admin top bar. Additionally, we mentioned that the client should refresh the website's cache after checking the links and making any changes to the translation, noting that the cache refresh might take a few minutes.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If you're still experiencing issues, we highly recommend checking 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 problem persists, please open a new support ticket with us.

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 Marsel Nikolli 1 year, 2 months ago.

Assisted by: Marsel Nikolli.

Author Posts
March 8, 2024 at 11:57 am #15388929

mercedesA-2

Tell us what you are trying to do?
I am building the website and some internal links have not been properly translated. As an example, some links in the french version of a page are correctly translated to the french url but not in the case of theproetugues version, and in some other case in none of the translations is working well.
How should I address this issue

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

March 8, 2024 at 12:05 pm #15388935

mercedesA-2

Just I wanted to add as an example if you go to the page:hidden link
you will notice that I have 3 kind of buttons with links to a product in the store:
First the rectangular that goes to:hidden link which is an error 404,
The next button is in the CTA that goes takes me to the same one
And last a the end of the page, the button with the cart inside goes to the product in spanish, so no translation.
The right link has to be :hidden link

Any help would be much appreciated

March 8, 2024 at 2:12 pm #15389756

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will gladly help you.

1) Could you please go to WPML -> Settings ->Translate Link Targets section, click "Scan now and adjust links". After the process is finished check if the issue persists and let me know how.

* Note: Please make sure you have a full backup of your website before making any updates.

2) I am not able to access your website as it requests a username and password to be able to check the links you shared. Could you please check that part and let me know how I can proceed?

Looking forward to your reply,
Marsel

March 8, 2024 at 3:13 pm #15389997

mercedesA-2

Hi, the problem it persists. It has generated 3 different links:
hidden link
hidden link
hidden link (this one is the original in spanish, so no translated)

And the url all of them need to go is:
hidden link

The same issue with the page in Protuguese

Let me know how to give you access to my website.

Thanks

March 8, 2024 at 3:25 pm #15390045

Marsel Nikolli

I would need temporary access to your site's WP-admin to investigate this issue and understand it better (please create an administrator user using any email address you prefer).

Please fully back up your site (files and database) and confirm it in your next reply.

Your next reply is set to private for you to provide the username and password details.

* Please share the user and password to access the screen shown on the attached image as well (that shows up on every link you shared with me).

Thanks,
Marsel

access-error.png
March 8, 2024 at 4:47 pm #15390313

Marsel Nikolli

Thank you for the access, I was able to check your website.

Related to the two other issues you were having, per our Support Policy, we can handle only one issue per ticket.

Continuing with one issue per ticket helps not only supporters to focus on one issue at once but also enables other users to find solutions to their questions faster.

---

Related to the issue with the links, it seems they weren't translated correctly on ATE (please check the attached image), the link on the translation language had some spaces. I did correct it and set the link you shared before as a destination link.

Please check if the links are set correctly by opening the page on the translation language you want to set the links and then click on the "Edit translation" button from the wp-admin top bar on the same page.

* Note: You would need to refresh the cache of your website after you checked the links and made any changes to the translation. For some reason, the refresh of the cache takes a few minutes (+10 minutes).

Let me know if it works on your end as well and let me know if you have further questions or need further assistance.

Regards,
Marsel

Screenshot 2024-03-08 171209.png