Skip to content

fix(rules): links/anchor-mismatch reports a URL-encoded "page -> target" string as the affected page #1729

Closed

Description

@nc9

Reproduced with squirrel 0.0.176 (squirrel audit https://nutshop.squirrelscan.com --offline --level surface -m 80 --format llm) and in the hosted cloud report for the same site.

The affected page is printed as /faq%20-%3E%20https://nutshop.squirrelscan.com/blog/storing-nuts-so-they-stay-fresh in the llm and markdown formats. The summary JSON shows the same pair as "https://nutshop.squirrelscan.com/faq -> https://nutshop.squirrelscan.com/blog/storing-nuts-so-they-stay-fresh" in pages. An agent that opens or greps the "page" finds nothing.

Acceptance Criteria

  • Pages (n) for links/anchor-mismatch lists the source page URL or path only (/faq here).
  • The link target and anchor text appear in the item label, not in the page.
  • llm, markdown, json and the cloud summary agree.
  • A rule test covers the page field.

Activity

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

    @nc9
    ContributorAuthor

    Not closed after v0.0.179 (https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.179). The page is now the source only and the target stays in the label, with a rule test. Still open: a report-level test that the llm, markdown and json formats agree, and the cloud summary check (private). The change that shipped is 9e0bd1f.

    nik

  4. nc9 commented on Nov 13, 2026

    @nc9
    ContributorAuthor

    Shipped in v0.0.179. Implemented in 9e0bd1f (an ancestor of the v0.0.179 tag), and described in that release's CHANGELOG entry for #1729.

    nik

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

    bugrulessize: XS

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions