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+02: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.