fix(site): exclude auth pages from sitemap and add noindex - #7767
Open
innocarpe wants to merge 1 commit into
Open
fix(site): exclude auth pages from sitemap and add noindex#7767innocarpe wants to merge 1 commit into
innocarpe wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SEO fix for the site/ Astro app:
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.site/src/layouts/Account.astro) — audit found the 7 auth pages all render through theAccountlayout, which had noheadslot; 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>insideAccount.astro— one line covers all 7 non-public routes, guaranteed to land in<head>(verifiedBase.astro:38<slot name="head" />inside<head>).Issues
None — audit finding, no issue report.
Verification
node --check site/astro.config.mjs— syntax OKDocumentation 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