Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As outlined on Google blog:
http://googlewebmastercentral.blogspot.co.uk/2011/09/pagination-with-rel...
Perhaps these links could be added automatically to help with SEO? They mention that it isn't necessary if there is a link to show the full page, as they will attempt to return the full page instead of the paginated ones.
An option to add "noindex" to full page would be handy for people who would rather have the paginated results returned instead of the full page, for sites that are heavy on graphics for example.
Comments
Comment #1
mundanity CreditAttribution: mundanity commentedHi there,
I like this idea. However, there's no real easy way to do this beyond overriding Drupal's theme_pager() call. While not a difficult thing, it is a lot of extra code just for that one benefit. Let me think about this some more, I'm not sold on it being worth it at this time though.
Comment #2
Seven_Six_Two CreditAttribution: Seven_Six_Two commentedI can see how that would be a lot extra! If my PHP was up to snuff, I would take a crack at it. Can you think of a better place for this functionality? Could these links not be added with a call to drupal_add_html_head() instead of overriding theme_pager()? I can see how it would be better if it was handled by Metatag project, but there are other modules with similar paging functionality, so I don't know how that would work...Sorry I couldn't be more help. I'll keep reading the docs, and maybe I will one day come up with something.
Comment #3
mgiffordAdding related issues and also pointing out possible accessibility advantages.
Related issues:
#115753: Pager rel attributes
#1665156: Support for rel="next" / rel="prev" pagination <link>
Related links:
http://www.w3.org/TR/html5/links.html#linkTypes
http://demosthenes.info/blog/190/Using-link-rel-to-preload-web-content-a...
http://www.webfoundation.org/accessibility/