This project is read-only.

Pagination Issue with LINK rel tag

Topics: Business Logic Layer
Jun 5, 2012 at 11: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 8, 2012 at 12:25 AM

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 11: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 7:57 PM
Edited Jan 24, 2013 at 7: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.