You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Draft /cite/ alias pages are indexed and listed in the sitemap #128
/cite/ alias pages for draft records are not marked noindex, and the sitemap includes them.
buildNoindexPredicate in src/lib/noindex.ts covers /id/… record paths and the /reg/work/{key}/ prefix. It does not cover /cite/. src/pages/cite/[...alias].astro writes one HTML redirect page for each alias. That page carries no robots meta tag. The sitemap filter in astro.config.mjs therefore keeps every alias page.
Against the real registry this publishes about 172,800 sitemap entries that point at draft references (86,397 qualified aliases and 86,397 bare aliases).
Why it matters
ADR-0003 (as amended by ADR-0004) requires draft record pages to be noindex, excluded from search, and excluded from the sitemap. The /cite/ gap defeats that rule. It also contradicts robots.txt, which tells crawlers to read /dump/ instead of crawling /id/ or /cite/.
Reproduce
Run npm run build:fast.
Open dist/sitemap-0.xml.
Find /cite/fixture.work/fixture-alternate/1/. The fixture reference behind that alias has status: draft, and its /id/ref/… page is correctly excluded.
Suggested fix
Extend buildNoindexPredicate to return the /cite/ alias paths of draft records, and render the robots meta tag in src/pages/cite/[...alias].astro.
Found during review of #127. Not caused by that PR.
Fixed on staging by 257f17e (#136). /cite/ alias entries in the sitemap go from 172,794 to 0, excluded by route rather than by record status, and untranslated /de/ fallback pages go from 35 to 5. The robots meta tag still goes on a draft alias page, which ADR-0003 requires independently.
The fix ships with the v0.1.0 release, #4. Closing now rather than at the tag, because the change is on staging and Closes does not fire from a merge into a non-default branch.
Activity
fix(site): keep redirects and untranslated fallbacks out of the sitem…
maehr commentedon Sep 2, 2026
Fixed on
stagingby257f17e(#136)./cite/alias entries in the sitemap go from 172,794 to 0, excluded by route rather than by record status, and untranslated/de/fallback pages go from 35 to 5. Therobotsmeta tag still goes on a draft alias page, which ADR-0003 requires independently.The fix ships with the
v0.1.0release, #4. Closing now rather than at the tag, because the change is onstagingandClosesdoes not fire from a merge into a non-default branch.