slop audit
Blog post 67 / Technical SEO and launch readiness

Pagination SEO: crawlable links, canonicals, and tests

Use pagination SEO checks to publish crawlable listing pages, set page-specific canonicals, support load-more interfaces, and test deployed routes before launch.

By Slop Audit · 8 min read

Pagination SEO means making every useful page in a listing reachable, identifiable, and consistent with its content. A blog archive can look complete while older posts are available only after a button click. A category can show different products on page two while its canonical still points to page one.

Before launching a paginated blog, resource directory, or catalog, test the sequence through direct URLs as well as the interface. This guide uses a three-page resource listing to show the implementation decisions and a focused deployed-response test.

Pagination SEO launch checklist

  1. Give each listing page a permanent URL that loads directly.
  2. Publish ordinary links to subsequent pages and to the listed resources.
  3. Declare the intended canonical for each distinct page.
  4. Keep intended public pages crawlable and review indexing directives separately.
  5. Preserve category and filter state when moving between pages.
  6. Test the first, middle, last, and out-of-range pages.
  7. Check refresh, browser Back, keyboard access, and narrow layouts.
  8. Audit representative public URLs after the sequence tests pass.

Start with a small reviewed fixture. For example, use /resources/, /resources/?page=2, and /resources/?page=3, with six known resource links on each page. Test with stable content so an editor publishing a new entry does not silently change your expected page boundaries.

Give each page a working URL and crawlable links

A URL such as /resources/?page=2 must return the second group when opened in a new tab. Avoid implementing page numbers only as #page=2. Google's pagination guidance recommends unique URLs, sequential links, and a separate canonical for each page. Google does not use head-level rel="next" and rel="prev" tags to identify the sequence.

For page two, render navigation like this alongside the resource cards:

<nav aria-label="Resource pages">
  <a href="/resources/">Previous page</a>
  <a href="/resources/" aria-label="Page 1">1</a>
  <a href="/resources/?page=2" aria-label="Page 2"
     aria-current="page">2</a>
  <a href="/resources/?page=3" aria-label="Page 3">3</a>
  <a href="/resources/?page=3">Next page</a>
</nav>

Google's crawlable link documentation identifies an anchor with an href as the reliable link pattern. A styled span with a click handler does not provide that destination. Render real resource links inside each card too; pagination alone cannot expose a destination hidden behind another script-only control.

The current-page marker serves people using assistive technology. MDN explains aria-current and its page value. Keep only one current item in this navigation, give the controls visible focus, and leave enough space between page numbers for touch. At the sequence boundaries, omit unavailable previous or next links rather than sending users back to the same page.

Set paginated pages' canonical URLs deliberately

For this example, page two contains resources absent from page one. Its head should identify page two:

<title>Developer resources — Page 2 | Example</title>
<link rel="canonical"
      href="https://example.com/resources/?page=2">

Do not reuse a layout default that strips every query parameter. Classify parameters by purpose: page=2 selects different content, while a tracking parameter may identify a duplicate of that same content. Build the canonical from a configured public origin and reviewed route data.

If /resources/?page=1 duplicates /resources/, choose one first-page address and align links, redirects, and metadata with that decision. Keep the canonical URL and redirects checklist beside the listing's route configuration.

An explicit page number in the title helps readers distinguish browser tabs in this example. It is an editorial choice: Google's pagination guidance permits repeated titles and descriptions across a sequence. Do not invent a requirement to write a new keyword-heavy description for every page number.

Inspect the initial response and the hydrated head. Google's canonicalization documentation recommends consistent canonical signals and clear JavaScript behavior. A correct server declaration followed by a client router replacing it with the archive root still needs repair.

Keep crawl and index controls consistent with the listing

For the public resource archive in this guide, page two is intended to be discoverable and eligible for indexing. Do not apply a blanket noindex simply because a URL contains ?, and do not block the whole listing to hide unwanted sort combinations.

Write down separate policies for the base sequence, categories, filters, and sort orders. For example, /resources/?category=testing&page=2 should retain the testing category when the visitor selects the next page. An accidental reset to all resources is both a navigation bug and a different listing contract.

Use the noindex troubleshooting guide to inspect HTML directives and X-Robots-Tag. Review the deployed robots rules separately. Google's noindex documentation explains that a crawler must be allowed to fetch the page to see that directive; a robots disallow is not an equivalent instruction.

If you maintain a sitemap, review its chosen URLs against the canonical policy. Include important resource detail pages rather than relying exclusively on deep archive navigation. A sitemap supplements discovery; it does not fix broken pagination links.

Keep out-of-range behavior explicit. In this three-page fixture, /resources/?page=999 should return a useful 404 response instead of silently repeating page one. Test malformed, zero, and negative values according to your router's documented normalization policy. The broken-link launch guide explains how to verify real response statuses.

Support load more and infinite scroll with direct pages

A load-more interface needs the same underlying content contract. Google's lazy-loading guidance recommends persistent chunk URLs and sequential links for infinite scroll. Google Search does not interact with a page as a visitor does, so content must not depend on a manual click or scroll to become discoverable.

For a small project, implement the direct paginated routes first. Then add the enhanced interaction while preserving the links. Open page two independently and check that its resources appear without first visiting page one.

When infinite scrolling changes the primary visible chunk, update the address appropriately and test refresh and browser Back. Record what happens after opening a resource and returning to the listing: the visitor should be able to continue near the place they left.

Also test a failed next-page request. Keep the existing list usable, explain the failure near the control, and offer a retry. Prevent concurrent clicks from appending the same batch twice. Keyboard users need a predictable route to the new items and the footer; a visually endless list deserves a separate interaction review.

Add focused pagination SEO testing to CI

This Playwright Test fixture checks delivered HTML for three known pages. Replace the sample resource paths with stable entries in your own release fixture. The data-resource-card attribute belongs on each resource's anchor, and the navigation label must match the markup above.

import { expect, test } from "@playwright/test";

const fixtures = [
  { path: "/resources/", item: "/guides/first/", next: "/resources/?page=2" },
  { path: "/resources/?page=2", item: "/guides/seventh/", next: "/resources/?page=3" },
  { path: "/resources/?page=3", item: "/guides/thirteenth/", next: null },
];

test("resource pagination publishes distinct crawlable pages", async ({ request, page }) => {
  const origin = process.env.RELEASE_ORIGIN;
  if (!origin) throw new Error("Set RELEASE_ORIGIN to the deployed origin");

  for (const fixture of fixtures) {
    const url = new URL(fixture.path, origin).href;
    const response = await request.get(url, { maxRedirects: 0 });
    expect(response.status(), url).toBe(200);
    expect(response.headers()["content-type"]).toContain("text/html");

    const actual = await page.evaluate((html) => {
      const doc = new DOMParser().parseFromString(html, "text/html");
      return {
        canonicals: Array.from(doc.head.querySelectorAll('link[rel~="canonical"]'),
          (link) => link.getAttribute("href")),
        items: Array.from(doc.querySelectorAll("a[data-resource-card][href]"),
          (link) => link.getAttribute("href")),
        next: Array.from(doc.querySelectorAll('nav[aria-label="Resource pages"] a[href]'))
          .filter((link) => link.textContent?.trim() === "Next page")
          .map((link) => link.getAttribute("href")),
      };
    }, await response.text());

    expect(actual.canonicals, url).toEqual([url]);
    expect(actual.items, url).toHaveLength(6);
    expect(actual.items, url).toContain(fixture.item);
    expect(actual.next, url).toEqual(fixture.next ? [fixture.next] : []);
  }

  const missing = await request.get(new URL("/resources/?page=999", origin).href,
    { maxRedirects: 0 });
  expect(missing.status()).toBe(404);
});

Playwright documents GET request options, including redirect limits. Here a blank browser page parses the fetched HTML; the test does not execute the site's scripts. It deliberately requires server-delivered links and cards.

Adapt the exact relative-link format, page size, metadata origin, routes, and out-of-range policy before running it. A preview that intentionally declares production canonicals needs separate request and expected-metadata origins. This test does not check every item, previous links, robots rules, indexing directives, browser history, or accessibility. Add those checks to the listing's website regression testing plan, and inspect a representative later page with Search Console's URL Inspection tool after release.

Check representative public pages with Slop Audit

Once the sequence tests pass, run Slop Audit on the first and a later public listing URL. Review the observed HTTP response, title, description, canonical declaration, sampled internal-link results, and available browser accessibility and mobile-layout evidence. Fix page-level failures and rescan the same URLs to retain the repaired release results.

Slop Audit's canonical check observes the declaration and its origin relationship. A same-origin canonical pointing incorrectly to page one can therefore pass that check; compare the recorded value with your fixture. Its bounded link probes do not crawl the whole archive, and its robots path check does not establish a complete query-parameter policy. It does not validate pagination sequences, infinite-scroll history, or Google's indexing decisions.

Keep the sequence test, manual navigation notes, and audit reports together. They answer separate launch questions: whether later resources remain reachable, whether the interaction works, and what page-level evidence was observed on the public release.