This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues with incorrect canonical URLs in the meta tags of your site when using WPML SEO, such as double encoding in URLs and seeing '%%' characters, this might be due to an outdated version of Yoast Premium. Solution: We recommend updating Yoast Premium to the latest version. This update should resolve the issue with the canonical URLs displaying incorrectly. If this solution does not apply to your case because it might be outdated, or if you continue to experience issues, please visit our support forum and open 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.
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.
Background of the issue:
I am trying to fix an issue with the canonical URL in the head section of my site when I enable WPML SEO. The problem can be seen on this page: hidden link.
Symptoms:
I am seeing strange meta tags with incorrect URLs. Instead of seeing HTTPS pages without '%%' in the links, I got: and .
Questions:
Why are the URLs in the meta tags double encoded?
How can I correct the canonical URL to display properly?
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Madrid (GMT+01:00)
Hi there,
Thank you for your patience. I’ve performed additional tests and, unfortunately, the issue still persists. To help us further investigate and escalate this to our second-tier support, could you please grant permission to download a duplicate copy of your site using Duplicator? This will allow us to analyze the problem in greater detail.
I ran some tests also.
If only Yoast on, WPMLSEO off -- all works.
If only Yoast off, WPMLSEO on -- all works.
If both Yoast on, WPMLSEO on -- got double convertion of the link.
Somehow both plugins make escape/sanitation to the link and it resulted as broken.
It can't work with normal Yoast "properly". As not Premium version is not generating canonical link at all. So there was No canonical link at this demo site before my install.
Ok, I got your point. While I don't have the ability to update it now, I will check if it's work after further update. Please delete test-sites.
Thank you.