Skip to content

A URL that redirects is audited as its own page, with the destination's content reported against it #1762

Closed

Description

@nc9

On the public demo site nutshop.squirrelscan.com (repo squirrelscan/nut-shop), /_fault/r1 answers 301 and, three hops later, lands on /categories/gift-boxes. It has no content of its own.

A cloud audit that knew this URL counted it as one of the audited pages (73, where the site has 72 pages that return content) and ran the page rules over it. In the published report /_fault/r1 appears in the page list of about 85 page-level checks, including:

  • content/keyword-stuffing warn: "2 word(s) may be overused", with /_fault/r1 as the source page for "nuts" (4.5%).
  • content/word-count warn: "Thin content: 210 words (min 300)".
  • core/robots-meta, legal/cookie-consent, perf/critical-request-chains, url/hyphens: all listing /_fault/r1.
  • Earlier, when every page was missing its lang attribute, a11y/html-lang-valid listed /_fault/r1, and that row stayed open after the template was fixed.

All of that describes /categories/gift-boxes, which is audited as itself too. So the destination is counted twice, page counts are one too high, and findings are listed against a URL the owner cannot fix them on. The redirect itself is reported correctly by crawl/canonical-chain and links/redirect-chains.

Expected: a redirecting URL is recorded as a redirect. Page rules run once, on the final URL.

Acceptance Criteria

  • A URL that redirects to another URL on the same site is not counted as an audited page and does not appear in the page list of any content, metadata, accessibility, performance or legal page rule.
  • The destination's findings are reported once, against the final URL.
  • Redirect rules (crawl/canonical-chain, crawl/redirect-chain, links/redirect-chains) still report the redirecting URL and its hops.
  • This holds whether the redirecting URL was found through a link, listed in the sitemap, or supplied as a known URL to re-check.
  • A redirect to a destination that is not otherwise crawled still gets that destination audited once, under the destination's URL.
  • The page totals in the report (pages audited, "+N more pages" counts) no longer include redirecting URLs.
  • Tests cover: a single redirect, a three-hop chain, a redirect to an uncrawled destination, and a redirect to an external host (not audited).

Activity

  1. added
    bug
    size: M
    on Nov 11, 2026
  2. added theissue type on Nov 11, 2026
  3. nc9 commented on Nov 12, 2026

    @nc9
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsize: M

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions