WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
Bug in Canonical URL on multilang websites (1 post)

  1. coati
    Member
    Posted 2 years ago #

    Hi,

    We've noticed that when using All in one SEO Pack together with WPML there is a (critical) bug with the Canonical URL.

    site.com => ok
    site.com/fr => gives site.com as canonical, resulting in not-indexing the main page(s) of the other language(s).

    I've fixed this by replacing (aioseop.class around line 520 in the is_home() conditional):

    $link = get_option('home');

    with

    $link = home_url( '/' );

    There are more issues, i.e. with paged category pages.

    --coati

    http://wordpress.org/extend/plugins/all-in-one-seo-pack/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic