Pagination Issue with LINK rel tag

Topics: Business Logic Layer
Jun 5, 2012 at 10:16 PM

Hello fellow BlogEngine gurus;

There seems to be an issue with the way the rel="next" rel="prev" meta tag is implemented on the blog post list page.

Say you have 2 pages of entries; 

When on page 1 of 2 the tag reads: 

<link rel="prev" title="Previous page" href="/BlogEngine26/blog.aspx?page=2" />

Where is should read

<link rel="next" title="Previous page" href="/BlogEngine26/blog.aspx?page=2" />

When on page 2 of 2 the tag reads: 

<link rel="next" title="Previous page" href="/BlogEngine26/blog.aspx?page=1" />

Where is should read, to signify the last page in the list

<link rel="prev" title="Previous page" href="/BlogEngine26/blog.aspx?page=1" />


1. Am I correct on this implementation, and if so where would I find the code that manages this?

Thanks for the input.

Jun 7, 2012 at 11:25 PM

Just checking in to see if any of you SEO types have faced this issue.  The end result seems to be that the crawlers are not seeing the last page in the chain and are thus indexing none existent blank pages as duplicate content.

Jan 23, 2013 at 10:18 PM

Has anyone figured this out?  I also just found out that the pagination is done incorrectly in BE.  I'm seeing a lot of error pages show up in my Google Webmasters tool due to this.


Jan 24, 2013 at 6:57 PM
Edited Jan 24, 2013 at 6:59 PM

In /User controls/PostList.ascx.cs there is this code:

  ((BlogBasePage)this.Page).AddGenericLink("next", "Next page", this.hlNext.HRef);

if (this.hlPrev.Visible)
  ((BlogBasePage)this.Page).AddGenericLink("prev", "Previous page", string.Format(url, page + 2));

You can modify it any way you like.