Home›Support›English Support›[Resolved] Split: The link on the translated English page still points to the Swedish
[Resolved] Split: The link on the translated English page still points to the Swedish
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.
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.
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.
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 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.
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.