Skip to content

Drop the index robots meta tag from indexable pages - #40

Merged
RaviTejaKNTS merged 1 commit into
mainfrom
chore/audit-components-page
Oct 10, 2026
Merged

RaviTejaKNTS merged 1 commit into
mainfrom
chore/audit-components-page

Conversation

@RaviTejaKNTS

Copy link
Copy Markdown
Collaborator

Why

Directory pages are static. /cli-apps?page=2 serves the same HTML file as /cli-apps, and Cloudflare adds X-Robots-Tag: noindex, follow to query URLs. The file also carried <meta name="robots" content="index, follow">, so every paginated URL sent two signals that disagreed. Google followed the stricter one, but the signals should agree.

What changed

  • lib/page-registry.ts: indexable pages send no robots meta tag, since indexing is the default. Published noindex pages keep noindex, follow. Missing pages keep noindex, nofollow.
  • scripts/stack127/publishing/verify.mjs: an indexable page passes unless a robots or googlebot tag says noindex or none. The static build, the content queue, and the origin check all use this.
  • Tests for an absent tag, an explicit index, blocking tags, and conflicting tags.
  • seo.md, page-publishing.md, and cloudflare.md now describe the new rule.

Canonicals, the query URL header rule, the sitemap, and JSON-LD are unchanged.

Checks

  • Sol wrote the change, and a separate Sol review passed. It confirmed that Next.js 16 clears inherited robots metadata with robots: undefined, so no parent noindex can leak in.
  • npm run quality passed (78 tests), and so did page-publishing.test.mjs (22 tests).

🤖 Generated with Claude Code

A query URL such as /cli-apps?page=2 serves the same static file as
/cli-apps and gets an X-Robots-Tag: noindex header. The page's own
"index, follow" meta tag contradicted that header. Indexing is the
default, so indexable pages now send no robots meta tag. Noindex pages
keep theirs, and the publish check no longer requires an index token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RaviTejaKNTS
RaviTejaKNTS merged commit 6ed848d into main Oct 10, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
production — cefacd5d Deployed Oct 10, 2026 by RaviTejaKNTS via verify-production-build #37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant