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+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.
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Madrid (GMT+02:00)
The issue has been escalated to the compatibility team.
I will let you know when I have some news.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.