This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is facing an issue where the canonical URL of the translated pages is not being copied over on pages translated for BetterDocs, unlike normal posts where setting the canonical URL value on the source page copies it to all translated pages.
Solution:
If you're experiencing issues with canonical URLs not being copied to translated pages in BetterDocs, it's important to understand that canonical URLs are typically used for posts or pages with similar content within the same language. For content available in multiple languages, the hreflang attribute is used to inform search engines about the different language versions of a page. We use the hreflang attribute to link all available translations to the original content, which prevents them from being treated as duplicates by search engines.
In the case of multilingual content, each language's canonical URL should point to itself, as each translation is considered a separate post. Therefore, it is not necessary to add a canonical URL for each translation if there are no duplicates within the same language. For more information on canonical URLs and hreflang, you can refer to the following guides:
- Canonical URLs in Yoast SEO
- The ultimate guide to hreflang
- Advanced uses of rel=canonical with hreflang
If this solution doesn't seem relevant to your situation, please don't hesitate to open a new support ticket with us here.
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.
This topic contains 1 replies, has 2 voices.
Last updated by 1 year, 8 months ago.
Assisted by: Mohamed Sayed.