Skip Navigation

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

Problem:

The client is experiencing an issue where internal links that should point to a specific page are instead pointing back to the page itself in all languages except the default language (French). This problem seems to be caused by a cache plugin.

Solution:

We recommend the following steps to resolve the issue:
1. Navigate to WPML -> Settings -> Translate Link Targets.
2. Click the "Start now and adjust links" button and wait until the process is finished.
3. After completion, make a small change to the post content and translate again to ensure the links are translated correctly.

Please ensure you have a full backup of your website before attempting these steps.

If the issue persists:
1. Update the WPML Multilingual CMS to the latest version, currently v.4.6.8.
2. Test the issue in a minimal setup by:
- Setting a default WordPress theme.
- Keeping only WPML plugins active.
- Disabling all other plugins.
3. Perform a full cache cleaning.

After the test in minimal setup, the client noticed that it was a Cache plugin that was causing the problem.
By disabling Autoptimize, Link Whisper, Yoast and editing the original page, save the translation, this fixed the problem.

If this solution doesn't look relevant, please open a new support ticket.

0% of people find this useful.

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

Last updated by Marsel Nikolli 1 year, 3 months ago.

Assisted by: Marsel Nikolli.

Author Posts
December 11, 2023 at 4:27 pm #15039281

jocelynH

I am trying to: link internal page

Link to a page where the issue can be seen:
hidden link

I expected to see:
an internal link pointing on hidden link (anchor : air-conditioned Disney attraction). In admin dashboard, this link pointing to hidden link, but when this page is view by a visitor, the link is replaced by a link pointing to the page itself (hidden link).
I got the same issue on all language and on all my website with link pointing to the page of all attractions:
hidden link
hidden link
hidden link
hidden link
hidden link
This bug don't appear on defaut language (french)

img03.jpg
img02.jpg
img01.jpg
December 12, 2023 at 8:30 am #15043009

Marsel Nikolli

Hi,



Thank you for contacting WPML Support, I will be happy to help you.

Please try following the steps below and check if the issue persists after:

1- Go to WPML -> Settings -> Translate Link Targets
2- click the button "Start now and adjust links" and wait until it is finished
3- Once the process is finished, test the post/s again, make a small change to the post content and translate again, the link/s should be translated as well.

Note: Please make sure you have a full backup of your website before trying the suggested steps.

Let me know how it goes.

Kind regards,
Marsel

December 12, 2023 at 9:50 am #15043815

jocelynH

Hello,

Thank you for your help.
I tried, but it doesn't work.

I launched the "Translate Link Targets" then modified the page to the default language then modified the translation.
But the problem remains the same.

Note: This link change problem also exists on the “all restaurants” pages.
However, in the menus and in some other pages, the links are ok;
He

December 12, 2023 at 10:43 am #15044393

Marsel Nikolli

Thank you for the update.

1) I'd suggest first you update the WPML Multilingual CMS to the latest version v.4.6.8.

2) Would it be possible to check if the issue happens in a minimal setup, that meaning:

- set a default WP theme
- keep active only WPML Plugins
- disable all other plugins

After, check if the issue is still happening.

This will help checking if the issue is being caused by any plugin conflict/incompatibility.

* I'd suggest you do a full cache cleaning as well if possible.

Note: Please make sure you have a full backup (files & database) before trying anything on your website.

Looking forward to your reply,
Marsel

December 13, 2023 at 8:18 am #15051521

jocelynH

Hi.

It seems that it is a Cache plugin that is causing the problem.

By disabling Autoptimize, Link Whisper, Yoast.

I manage to do the manipulation:
edit the orignial page, save the translation, then this fixes the problem.
but I need to do this for all pages and all translations. I'm going to need time to correct everything...

thanks for the help