Background of the issue:
I am trying to resolve an issue with the canonical URL of my site. The site’s original language is Dutch, and I have used the WPML plugin to translate it to English. In English pages, the canonical URL is shown properly, but in Dutch pages, the canonical URL fetches the respective English page URL instead of the original Dutch URL. I tried using the following code to modify the canonical URL structure, but it did not work:
Link to a page where the issue can be seen: hidden link
Symptoms:
The URL of the site should be the canonical of the page, but instead, the translated pages, i.e., the respective English page URL, are fetched for canonical in Dutch pages.
Questions:
Why is the canonical URL of the Dutch pages fetching the respective English page URL instead of the original Dutch URL?
How can I modify the canonical URL structure to show the correct URL for Dutch pages?
You should not have problems with Conanical URLs and you should not add code for that.
Would you please do as follows?
- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > Plugins > Add new > Commercial (tab)".
- Click the "Check for Updates" button.
- Check the WPML SEO plugin and download and activate it
- Go to "WordPress Dashboard > Settings > Permalinks".
- Click the "Save" button to flush the permalinks cache.
Thanks.
The topic ‘[Closed] Canonical URL Issue’ is closed to new replies.
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.