Skip to content Skip to sidebar

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

Problem:
When creating a new product in WooCommerce and adding a link in the product description, then translating the product using WPML, the link in the translated version incorrectly points to the original language's target page instead of the translated page.
Solution:
1. Navigate to WPML → Languages → Make themes work multilingual.
2. Enable the option 'Adjust IDs for multilingual functionality'.
3. Re-save the translated products to ensure the links point to the correct translated pages.
Additionally, ensure that the URL in Settings → General matches the site's protocol (https://). If it is set to http://, update it by adding an 's' to make it https://. This adjustment can resolve issues with incorrect link redirection in translated content.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific 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.

This topic contains 7 replies, has 0 voices.

Last updated by hansN-10 1 day, 5 hours ago.

Assisted by: Andrey.

Author Posts
July 16, 2025 at 2:24 pm #17242634

hansN-10

Hello Andrey and thank you for your reply.
So this is the issue for which I contacted you, but there is also another issue that might be related.

When I create a new product in woocommerce, and then add some kind of link in the product description, and then I use WPML to translate the product, the link on the translated English page still points to the Swedish link target page.

For example: In the Swedish product description I put a link to the Swedish version of my Support page. Then I use WPML to translate the product description to English, and during translation I get a notice that the link will be automatically redirected to the English version of my Support page (screenshot B)

But this does not work. When I go to the translated English version of the product in the frontend and click on the link, I am forwarded to the Swedish version of the support page, but I should have been forwarded to the English version of the support page.

You can test this behaviour for yourself on my Staging site. I have created a testproduct (screenshot C), but I have not yet translated it to English. In the product description I have put a link to my Cookie Policy page. Please open that product in the backend, then choose to Translate with WPML in the right column, then go through the (manual) translation process, and then visit the product in the frontend. You will see that both the Swedish and English versions of the link in the product description are leading to the Swedish version of the Cookie Policy, while the desired behavior would be that the link on the English version of the product page would lead to the English version of the Cookie Policy.

It has not helped to click on the Scan now and adjust links button in WPML > Settings.

Best regards,
Hans

July 16, 2025 at 2:35 pm #17242730

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Since the original issue has been resolved, please verify if this problem still persists. If it does, let me know and I’ll be happy to check further.

July 16, 2025 at 4:57 pm #17243102

hansN-10

Hello Andrey,

Yes, this issue is still there. When I add a new product which has a link to a different page on my site (e.g. cookie policy), and then translate the product with wpml, both the swedish and english products link to the swedish version of the cookie policy.

Best regards,
Hans

July 17, 2025 at 10:44 am #17245193

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback, Hans.

Just to confirm—do I understand correctly that the cookie policy page is already translated?

The expected behavior is as follows:
1. Create page A (in the default language).
2. Translate page A to create page B (in the secondary language).
3. Add a link to page A in a product description.
4. When translating the product, WPML should automatically convert the link to point to page B.

If this is not working as expected, could you please provide new access credentials? The previous ones were automatically deleted once the support ticket was marked as resolved.

I’ve just performed a quick test on my local installation by linking a translated page in a product description, and it worked correctly.

I’ll send the next reply as private.

July 17, 2025 at 11:16 am #17245432

hansN-10

Sorry, forgot the screenshots. Adding them here.

B.png
A.png
C.png
July 17, 2025 at 3:44 pm #17247065

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for the details.

Could you please test it again now?

I made the following adjustment:
1. Navigated to WPML → Languages → Make themes work multilingual
2. Enabled the option “Adjust IDs for multilingual functionality”

After this change, the translated test products began displaying the correct translated links once they were re-saved. Let me know if it works on your end as well.

July 17, 2025 at 5:08 pm #17247276

hansN-10

Sorry, I cannot get it to work on the live site, but it works on the staging site...

Can you please log in to the live site and check if I missed anything in your instuctions?

You can use the same login credentials as for the staging site, only remove "dev" from the login URL.

Thank you.

Best regards,
Hans

July 17, 2025 at 7:36 pm #17247903

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Good evening Hans,

Good news — I was able to resolve this on the live site.

After some testing, I noticed that while the live site uses hidden link, the URL in Settings → General was still set to hidden link. I took the liberty and updated it by simply adding the “s” to make it hidden link, and that did the trick.

I tested it using the product named “2testt”, and everything is now working as expected.

Thank you!

July 18, 2025 at 8:48 am #17249078

hansN-10

Perfect, now it is working, thank you so much for all your help Andrey!