Skip to content

fix: keep 404 metadata off the homepage - #15

Merged
0thernet merged 1 commit into
mainfrom
fix/keep-404-metadata-off-homepage
Aug 20, 2026
Merged

fix: keep 404 metadata off the homepage#15
0thernet merged 1 commit into
mainfrom
fix/keep-404-metadata-off-homepage

Conversation

@0thernet

Copy link
Copy Markdown
Contributor

Summary

  • Root layout now keeps only inheritable site-wide defaults (metadataBase, title template, application name, default social image). Homepage title, description, canonical /, indexable robots, and homepage og:title / og:url / og:description live on app/page.tsx.
  • not-found.tsx publishes Page not found, a 404 description, and noindex. Missing URLs no longer reuse the homepage canonical or indexable robots.

Test plan

  • bun run check (typecheck, lint, full test suite)
  • Local next start --port 4013 curl of /, a missing path, /about, and /history/acquisitions
  • Confirm Preview HTML: 404 title is Page not found | stripehistory.com, robots are noindex, no homepage canonical, no og:url pointing at https://stripehistory.com
  • Confirm homepage title, canonical, robots, OG tags, and the 1.62MB history JSON-LD are unchanged

Root layout kept the homepage title, canonical, and indexable robots, so unmatched routes reused that identity. Move homepage identity onto the homepage and give not-found its own noindex page.
@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stripe-history Ready Ready Preview Aug 20, 2026 6:13pm

Request Review

@0thernet
0thernet merged commit bee63eb into main Aug 20, 2026
4 checks passed
@0thernet
0thernet deleted the fix/keep-404-metadata-off-homepage branch August 20, 2026 18:35
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