Best practice is to have self-referencing canonical URLs for all paginated pages, so yes, in most cases don't point canonicals to the first page, but everyone's paginated pages, content, and site is different, so this setting exists so that your SEO can test and make the best call. I rarely find that paginated pages add value to the search results.
I would argue "...setting the blog listing page's canonical URL to the first page prevents search engines from finding any subsequent paginated pages." isn't technically correct as Google will crawl the pagination links, discover the content and make its own call as to whether to honour the canonical.
Another approach to this would be to change your blog listings templates pagination code to point the first paginate link to / instead of /page/1. Your pagination code might look something like this
You could change the code as follows (changes in bold) to check if this is the first page of pagination and set it to your default blog page ( {{ group.absolute_url }} - or replace that with href="/" if you prefer.)
Note this doesn't stop the blog /page/1 being generated, you just won't be linking to it. Another approach could be to check if the url path contains /page/1 and noindex (just) that pagination page or add a canonical (if you haven't already set a canonical via the blog settings.) Add something like the following to your blog listing pages header HTML
{% if request.path is string_containing "/page/1" %}
<meta name="robots" content="noindex">
{% endif %}
Matthew Shepherd
Freelance HubSpot Consultant CRM Consultant | SEO Specialist
The /page/1 is part of your blog listing template's pagination functionality. Instead of killing it off you could set the canonical for each paginated page of your blog to point back to the first page.
Thanks for the link but I'm a bit confused as this specifically mentions not setting canonical URLs to the listing pages:
Please note: for the Blog listing pages setting, HubSpot recommends that you don't add canonical URLs to blog listing pages. While search engines may flag blog listing pages as duplicate content, setting the blog listing page's canonical URL to the first page prevents search engines from finding any subsequent paginated pages.
Best practice is to have self-referencing canonical URLs for all paginated pages, so yes, in most cases don't point canonicals to the first page, but everyone's paginated pages, content, and site is different, so this setting exists so that your SEO can test and make the best call. I rarely find that paginated pages add value to the search results.
I would argue "...setting the blog listing page's canonical URL to the first page prevents search engines from finding any subsequent paginated pages." isn't technically correct as Google will crawl the pagination links, discover the content and make its own call as to whether to honour the canonical.
Another approach to this would be to change your blog listings templates pagination code to point the first paginate link to / instead of /page/1. Your pagination code might look something like this
You could change the code as follows (changes in bold) to check if this is the first page of pagination and set it to your default blog page ( {{ group.absolute_url }} - or replace that with href="/" if you prefer.)
Note this doesn't stop the blog /page/1 being generated, you just won't be linking to it. Another approach could be to check if the url path contains /page/1 and noindex (just) that pagination page or add a canonical (if you haven't already set a canonical via the blog settings.) Add something like the following to your blog listing pages header HTML
{% if request.path is string_containing "/page/1" %}
<meta name="robots" content="noindex">
{% endif %}
Matthew Shepherd
Freelance HubSpot Consultant CRM Consultant | SEO Specialist
I tried this fix but it sets all page 1's for tag and author listing pages to the main blog URL. I figured out a change instead of using {{ group.absolute_url }}
Here's my code with the updates if anyone is interested.
Thanks for sharing this with the Community, @LoganThompson!
Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success. Don't miss this opportunity to connect and grow—reserve your spot today!
Sep 28, 202111:31 AM - edited Sep 28, 202112:35 PM
Top Contributor
Duplicate blog listing page
SOLVE
Hi Matthew
I have implemented the pagination which works fine when there are a few pages. Selecting pagination 1 goes back to /news. If however I click on pagination 5 or higher then click 1 it goes to /news/page/1.
Is there a way to make clicking on 1 go back to /news no matter which pagination page you are on?
Sep 29, 20216:44 AM - edited Sep 29, 20216:46 AM
Key Advisor
Duplicate blog listing page
SOLVE
Hi @Codyrg2006 This wouldn't be high on my list of SEO priorities unless it was generating a very large number of duplicate URLs, but generating duplicate URLs for the same content is sub-optimal for SEO as it wastes crawl budget, meaning search engines may not be crawling as much of your site as regularly as you want.
Duplicate content also means search engines are left to decide which version of your page to filter out of search results, meaning the search engines chooses which version of the page receives traffic and it may not be the one we prefer.
Matthew Shepherd
Freelance HubSpot Consultant CRM Consultant | SEO Specialist