Skip to content

Index rules should skip noindex pages, and core/robots-meta should report X-Robots-Tag: noindex #457

Closed

Description

@deniskern

Summary

On a page with <meta name="robots" content="noindex,nofollow"> squirrel still reports core/h1, core/meta-title, core/meta-description, links/orphan-pages, content/duplicate-title and more. For a page the owner deliberately keeps out of the index these findings are noise.

A page served only with the header X-Robots-Tag: noindex gets the same findings, and the header is reported nowhere: not in core/robots-meta, not in entities.

Repro

Three static pages, none with an <h1> or meta description:

  1. /meta.html with <meta name="robots" content="noindex,nofollow">
  2. /hdr.html served with the response header X-Robots-Tag: noindex
  3. /a.html, a normal page linking to both
squirrel audit http://localhost:8766/ --http -f json

Actual

  • Index rules (core/h1, core/meta-title, core/meta-description, links/orphan-pages, …) fire for /meta.html and /hdr.html.
  • core/robots-meta lists only /meta.html (legacyValue: "noindex,nofollow", message Page is set to noindex and nofollow); /hdr.html appears nowhere.

Expected

  • Index-related rules skip pages marked noindex (meta tag or header).
  • core/robots-meta reports the X-Robots-Tag header form too, so consumers can tell which pages are deliberately unindexed.

Versions

Tested with 0.0.102.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions