Skip to content Skip to sidebar

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

Problem:
The client reported that the homepage link in the French translation of a review page still pointed to the English version, despite running the 'Adjust links in posts and strings so they point to the translated content' setting.
Solution:
We tested the issue by copying the problematic paragraph to a new test page and translating it, where the URL translated correctly. We then made a minor edit in the default language of the original review page and updated the translation. This resolved the issue, and the homepage link in the French translation correctly pointed to the French version of the homepage.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we recommend opening a new support ticket. Additionally, 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. For further assistance, please visit our support forum at https://wpml.org/forums/forum/english-support/.

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 11 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 7 months ago.

Assisted by: Osama Mersal.

Author Posts
July 20, 2024 at 7:02 am #15980976

peterB-149

Background of the issue:
I have a review here: hidden link. This has 2 internal links within the page content to hidden link and hidden link. This is translated into French here: hidden link. The 'apps' link points to the correct corresponding page: hidden link. The homepage link still points to the English version however: hidden link. I have run 'Adjust links in posts and strings so they point to the translated content' in settings but this made no difference.

Symptoms:
The homepage link in the translated French page still points to the English version.

Questions:
Why is the homepage link in the translated French page still pointing to the English version?
How can I ensure that all internal links are correctly translated to their corresponding pages?

July 21, 2024 at 10:17 am #15983105

Osama Mersal

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) Please edit the translation using the WPML translation editor, use the search field, and search for this URL to translate it. Kindly check this guide to know more about translating URLs.

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

July 24, 2024 at 3:02 am #15995436

peterB-149

Thanks for your response.

I thought that WPML would automatically translate the URL's to the corresponding page on the translated site?

It has done this for the other link just not the homepage link?

It is not ideal to have to search for links every time that I translate a page with links in.

I've already changed the memory limit, but thanks.

July 24, 2024 at 9:01 am #15997026

Osama Mersal

Hi,

WPML automatically translates the internal links, but some links are not translated automatically depending on how they are added to the post/page, so the other solution is to translate them using the search field in ATE.

Best regards,
Osama

July 25, 2024 at 8:43 pm #16005514

peterB-149

But surely a straightforward link to the homepage should be translated? The other link translated correctly.

July 26, 2024 at 11:27 am #16008404

Osama Mersal

Hi,

Please let me know how this URL is added to the page.

Best regards,
Osama

July 29, 2024 at 8:30 am #16014423

peterB-149

Just by using the standard WordPress editor.

July 29, 2024 at 9:07 am #16014775

Osama Mersal

Hi,

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

July 29, 2024 at 11:35 am #16015579

peterB-149

All permissions granted.

July 29, 2024 at 11:58 am #16015807

Osama Mersal

Hi,

Thanks for the access details. I copied the same paragraph and added it to a new hidden link">test page to check if it would work correctly or not.

After that, I translated the page, and the URL was hidden link">translated correctly.

To test the issue on the review mentioned, I made a minor edit in the default language and updated the translation.

When checking the hidden link">translated review on the front end, the URL was correctly translated.

Best regards,
Osama

July 29, 2024 at 12:04 pm #16015845

peterB-149

Strange, even the initial example I provided seems to have the correct links now even though I haven't edited it? Would there be a reason for this?

July 29, 2024 at 12:23 pm #16015907

Osama Mersal

Hi,

I updated your example in the default language and its translation, which fixed the issue.

The issue could be caused by caching or corrupted translation, but updating it fixed it.

Best regards,
Osama

July 29, 2024 at 12:36 pm #16015957

peterB-149

OK thanks.