Skip to content

fix(docs): redirect bare section roots to their first page - #25776

Merged
alejoamiras merged 2 commits into
nextfrom
worktree-docs-landing-redirects
Nov 8, 2026
Merged

alejoamiras merged 2 commits into
nextfrom
worktree-docs-landing-redirects

Conversation

@alejoamiras

@alejoamiras alejoamiras commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

/developers, /developers/docs and /operate returned 404, and /network redirected into that 404. They now redirect to the first page of their section.

The orphaned-URL check now also requires every docs section's root to land on a page or a redirect, so a new section can't ship with a 404 root.

/developers, /developers/docs and /operate served no page, so they
returned 404, and /network went through /network/* into the /operate/
404. Each now lands on the first page of its sidebar:

- /developers -> /developers/overview
- /developers/docs -> /developers/docs/foundational-topics
- /operate and /network -> /operate/operators

The /network rule sits above the /network/* wildcard so it matches first.
@alejoamiras
alejoamiras requested a review from a team as a code owner November 6, 2026 17:35
check_orphaned_urls.sh only checked sitemap URLs, and an instance root
that serves no page is in no sitemap, so /developers, /developers/docs
and /operate could 404 with every check green. It now also checks each
instance root and each folder its sidebar autogenerates, read from the
literal routeBasePath/sidebarPath pairs in docusaurus.config.js. Cut
version roots are left out because validate_redirect_targets.sh rejects
their landings as targets.
@alejoamiras
alejoamiras merged commit f6e97d6 into next Nov 8, 2026
18 checks passed
@alejoamiras
alejoamiras deleted the worktree-docs-landing-redirects branch November 8, 2026 12:17
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.

2 participants