Viewing 8 replies - 1 through 8 (of 8 total)
  • daholzer,

    I might be able to help if I could see your website; I’m assuming it’s not actually hosted at domain.com, is it? http://www.domain.com/post-title/2/ gives a 404 error, therefore, I doubt it is the real url.

    Thread Starter daholzer

    (@daholzer)

    Hi Peter, thanks for your quick reply. Here is a link to a page that shows the behavior I mentioned.

    http://www.hollywoodnoirmakeup.com/game-of-thrones-inspired-jewelry/2/

    As you can see the canonical url is using /page/2/

    Thank you, I’ll test this locally and see if I can reproduce and troubleshoot the issue. How are you paginating your posts, are you using the nextpage quicktag for this?

    Thread Starter daholzer

    (@daholzer)

    Yes the <!–nextpage–> tag is being used in the posts for pagination.

    This is a bug, and I’ll see that it gets fixed in the next release; in the meantime, if you’d like a patch for this, edit your aioseop_class.php file and replace the function yoast_get_paged() with the following code, and let me know if that fixes your issue:

    function yoast_get_paged( $link ) {
    		$page = $this->get_page_number();
            if ( !empty( $page ) && $page > 1 ) {
    			if ( get_query_var( 'page' ) == $page )
    				$link = trailingslashit( $link ) . "$page";
    			else
    				$link = trailingslashit( $link ) ."page/". "$page";
    			$link = user_trailingslashit( $link, 'paged' );
    		}
    		return $link;
    	}
    Thread Starter daholzer

    (@daholzer)

    OK, I made the edit you suggested. When I visit that page I posted earlier, the canonical icon in Firefox is now grey instead of blue. It doesn’t show any url but it does say “Current location matches the canonical page”. I’m not sure if this is how its meant to be or that it should actually show the url. Is this correct?

    Yes, it looks correct now.

    Thread Starter daholzer

    (@daholzer)

    Thanks for being so quick in resolving this issue for me!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Canonical URLs on multi paged posts wrong’ is closed to new replies.