WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Canonical Link (5 posts)

  1. kylomylo
    Member
    Posted 1 year ago #

    Hi,
    I enjoy this plugin but I have some questions, regarding canonical links, Google give great importance to that and the last part of the post , in that manner, will be not indexed.
    We know if we want to break up some long posts we are using <!--nextpage-->, then are created pages /2../3 etc.
    Good Canonical links are created out of the last page.

    Example here :
    - a post divided in 2 result is

    The first page has

    <link rel="canonical" href="http://www.mydomain.com/puppies-post" />
    <link rel="next" href="http://www.mydomain.com/puppies-post/2" />

    The second page has -the last part

    <link rel="canonical" href="http://www.mydomain.com/puppies-post" />
    <link rel="prev" href="http://www.mydomain.com/puppies-post" />

    - a post divided in 4 parts

    1 First page has

    <link rel="canonical" href="http://www.mydomain.com/dog-post" />
    <link rel="next" href="http://www.mydomain.com/dog-post/2" />

    2 Second page has

    <link rel="canonical" href="http://www.mydomain.com/dog-post/2" />
    <link rel="prev" href="http://www.mydomain.com/dog-post" />
    <link rel="next" href="http://www.mydomain.com/dog-post/3" />

    3 Third page has

    <link rel="canonical" href="http://www.mydomain.com/dog-post/3" />
    <link rel="prev" href="http://www.mydomain.com/dog-post/2" />
    <link rel="next" href="http://www.mydomain.com/dog-post/4" />

    4 Fourth page has - the last part

    <link rel="canonical" href="http://www.mydomain.com/dog-post" />
    <link rel="prev" href="http://www.mydomain.com/dog-post/3" />

    We can see that the last page always has a wrong canonical link, instead of ie fourth page, meaning /4 , it has the first page whithout numbers.

    The question is - How can we solve this?
    Thanks for your patience.

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

  2. jrf
    Member
    Posted 1 year ago #

    I've already submitted a fix for this last week as a pull request in GitHub. Most likely it will be included in the next version of the plugin.

    Happy ?

  3. kylomylo
    Member
    Posted 1 year ago #

    Yes ! It's working. Thank you very much.

  4. oneruffryder
    Member
    Posted 1 year ago #

    Jrf, i notice you provide some support here, so pls take a look at my topic with similar issues, where people are looking for an answer to solve their problems which cause a bad ranking with google

    http://wordpress.org/support/topic/huge-number-of-duplicate-stuff?replies=10

    Thx

  5. jrf
    Member
    Posted 1 year ago #

    @oneruffryder, just helping out a bit in the spirit of open source. I'm in no way a form of official support nor am I affiliated with Yoast.

    And no, I don't do requests - unless someone is paying me for it.

    I'd seen the topic you point to before and haven't got a solution at the moment - would need a lot more studying of the code than I'm willing to put in atm -, so I have nothing to contribute to it.
    Sorry.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic