WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Jeroen T.
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. saphira1969
    Member
    Posted 11 months 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
    Member
    Posted 8 months 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);

    Bye

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.