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.
In doing an SEO audit of our site, we noticed that the First and Next pager links both have 'rel="prev"'.. This can cause SEO problems since crawlers find two different URLs marked as prev.
Solution is to change the pager.html.twig template to use rel='first' or alternatively remove the rel for first and last since these values are not defined for the rel= attribute.
Comment | File | Size | Author |
---|---|---|---|
#3 | pager-template-uses-prev-for-first-link-2966175-3.patch | 764 bytes | phrabovcin |
Comments
Comment #2
cgmonroe CreditAttribution: cgmonroe as a volunteer commentedCorrected version to 8.3-dev branch.
Comment #3
phrabovcin CreditAttribution: phrabovcin at Slovak Drupal Association, MADE it digital s.r.o. commentedI changed rel attribute on "First" link to "first" instead of "prev" in pager.html.twig template.
Comment #4
phrabovcin CreditAttribution: phrabovcin at Slovak Drupal Association, MADE it digital s.r.o. commentedComment #6
markhalliwellComment #8
markhalliwell