• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest article pagination rel="prev/next"

#2
You can do this for now, until implemented:

edit the template page_nav.html, under:
Code:
<xen:if is="{$pageTotal} > 1">
add this:

Code:
<xen:if is="{$prevPage}"><xen:container var="$head.relprev">
    <link rel="prev" href="{xen:link 'full:{$linkType}', $linkData, '_params={$linkParams}', 'page={$prevPage}'}" />
</xen:container></xen:if>
<xen:if is="{$nextPage}"><xen:container var="$head.relnext">
    <link rel="next" href="{xen:link 'full:{$linkType}', $linkData, '_params={$linkParams}', 'page={$nextPage}'}" />
</xen:container></xen:if>
 

Optic

Well-known member
#3
I noticed that on pagination inside a thread, and on thread_list within a forum that the first page has rel="start"

Has this been partially implemented then or has it always been like this?

e.g.
Code:
<div class="PageNav" data-page="1" data-range="2" data-start="2" data-end="6" data-last="143" data-sentinel="{{sentinel}}" data-baseurl="forums/general-xenforo-discussion-and-feedback.45/page-{{sentinel}}">
    <span class="pageNavHeader">Page 1 of 143</span>
    <nav>
        <a href="forums/general-xenforo-discussion-and-feedback.45/" class="currentPage" rel="start">1</a>
Though no rel="prev" or rel="next" ..

Google seems to figure out pagination easily but maybe there would be a minor SEO benefit implementing it?
https://support.google.com/webmasters/answer/1663744?hl=en
 

Mike

XenForo developer
Staff member
#4
Nothing has been changed here in a long time, though we do output prev and next via link headers:
Code:
<link rel="prev" href="forums/closed-suggestions.15/page-4" /><link rel="next" href="forums/closed-suggestions.15/page-6" />