Yoast SEO
[resolved] Canonical Link (5 posts)

  1. kylomylo
    Posted 2 years ago #

    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.


  2. jrf
    Posted 2 years 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
    Posted 2 years ago #

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

  4. oneruffryder
    Posted 2 years 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



  5. jrf
    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic