WordPress SEO by Yoast
WPML & Yoast SEO canonical link issue (3 posts)

  1. Jeroen T.
    Posted 2 years ago #

    WPML handles duplicated (non translated) cloned pages correctly by adding a canonical link towards the original page. Example:

    site.org/page/ (original) > canonical link: none
    site.org/es/page/ (duplicate of original) > canonical link: site.org/page/
    site.org/ru/page/ (duplicate of original) > canonical link: site.org/page/
    site.org/nl/page/ (translated) > canonical link: none

    Perfect, but after installing the SEO plugin from Yoast all the pages canonical links, link towards themselves. Like:

    site.org/page/ (original) > canonical link: site.org/page/
    site.org/es/page/ (duplicate of original) > canonical link: site.org/es/page/
    site.org/ru/page/ (duplicate of original) > canonical link: site.org/ru/page/
    site.org/nl/page/ (translated) > canonical link: site.org/nl/page/

    This will cause duplicate content because the canonical link isn't referring to the original page. How to fix this.


  2. saphira1969
    Posted 2 years ago #

    I have the exact same issue.. in the meanwhile I disabled non translated languages... but this needs to be fixed the sooner...
    an easy solution would be to be able to DISABLE the canonical feat in Yoast seo...
    Any suggestions?
    my site is http://www.weddingintuscany.info but i have others who will have the same problem

  3. Damian
    Posted 1 year ago #

    I see you still got problem with cananonical by checking your site's source code. I fixed the issue by disabling yoast canonical and re enabling wpml one.

    add_filter('wpseo_canonical', 'filter_canonical');
    function filter_canonical(){
    	return false;
    global $sitepress;
    add_action('wp_head', array($sitepress,'rel_canonical'),1);


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.