Hi, any thoughts on supporting the rel="next" / rel="prev"
elements for pagination?

Comments

remkovdz’s picture

Sorry to push, but any thoughts?

Google:

you can now use the HTML link elements rel=”next” and rel=”prev” to indicate the relationship between component URLs in a paginated series.

More info: http://googlewebmastercentral.blogspot.co.uk/2011/09/pagination-with-rel...

In other words: this needs HTML
elements in the head of the page, depending on wether there are previous and/or next pages.

Example when a user is on page 2:

<head>
..
<link rel="prev" href="http://www.example.com/article?story=abc&page=1" />
<link rel="next" href="http://www.example.com/article?story=abc&page=3" />
..
</head>
remkovdz’s picture

Any ideas? Thanks.

mgifford’s picture

couturier’s picture

Project: Metatag » Smart Paging
Version: 7.x-1.0-alpha5 » 7.x-1.x-dev
Status: Active » Closed (duplicate)

This is exactly what the Smart Paging module can do, and it works well to install it alongside Meta Tags. Read this issue for a bit more detail: http://drupal.org/node/1809652#comment-6595584

damienmckenna’s picture

Issue tags: -SEO

@remkovdz: Regard your example, how would Metatag know whether the other URLs existed without first checking them, or how would it know what the first and last pages were, to identify situations that it shouldn't add the PREV or NEXT tags? Defining connections between multiple pages is outside of Metatag's scope and better suited for e.g. Smart Paging as couturier suggested. Thanks for the suggestion, though.

anybody’s picture