Skip to content

fix(site): exclude auth pages from sitemap and add noindex - #7767

Open
innocarpe wants to merge 1 commit into
esengine:main-v2from
innocarpe:contrib/r12-site-seo
Open

fix(site): exclude auth pages from sitemap and add noindex#7767
innocarpe wants to merge 1 commit into
esengine:main-v2from
innocarpe:contrib/r12-site-seo

Conversation

@innocarpe

Copy link
Copy Markdown
Contributor

Summary

SEO fix for the site/ Astro app:

  1. Sitemap filter (site/astro.config.mjs) — auth/account routes (/login/, /register/, /forgot/, /reset/, /account/, /device/, /u/) now excluded alongside the existing changelog exclusions. Verified against all 15 actual routes: public routes still included, all 7 auth routes excluded.
  2. noindex (site/src/layouts/Account.astro) — audit found the 7 auth pages all render through the Account layout, which had no head slot; a per-page <Fragment slot="head"> would be silently dropped (dead code). Added the byte-identical 404.astro pattern as a direct child of <Base> inside Account.astro — one line covers all 7 non-public routes, guaranteed to land in <head> (verified Base.astro:38 <slot name="head" /> inside <head>).

Issues

None — audit finding, no issue report.

Verification

  • node --check site/astro.config.mjs — syntax OK
  • Filter executed against all 15 routes — include/exclude matrix correct
  • Line-exact review of the Fragment placement chain (Account.astro → Base.astro head slot)

Documentation impact

Documentation-impact: none - SEO metadata and sitemap only.

Cache impact

Cache-impact: none - static site only.
Cache-guard: N/A
System-prompt-review: N/A

@github-actions github-actions Bot added the v2 Go rewrite (1.x) — main-v2 branch, active development label Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant