Implement dynamic category landing page redirect#10
Draft
Conversation
Co-authored-by: grealalexander2-collab <228605079+grealalexander2-collab@users.noreply.github.com>
Co-authored-by: grealalexander2-collab <228605079+grealalexander2-collab@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Complete and close the repository
Implement dynamic category landing page redirect
Feb 20, 2026
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.
Navigating to a category URL (e.g.
/docs/en/get-started) previously returned a 404. Now it redirects (302) to the first document in that category per the TOC.Changes
src/http/get-docs-000lang-catchall/index.mjsgetFirstLeaf(): traverses TOC structure to find the first document URL in a branchfindFirstDocPath(): maps URL path segments to TOC categories, returns first doc URLENOENT, attempt category redirect before falling through to 404langfrom request context into path prefix (avoids hardcoded/docs/en)test/backend/sandbox-http-test.mjs: Adds redirect status + location header assertions for a category pathreadme.md: Marksdynamic category landing pageanda homepageTodo items complete; updates stale dev noteBehavior
/docs/en/get-started/docs/en/get-started/why-architect/docs/en/guides/docs/en/guides/developer-experience/local-development/docs/en/about/docs/en/about/missionThank you for helping out! ✨
We really appreciate your commitment to improving Architect
To maintain a high standard of quality in our releases, before merging every pull request we ask that you've completed the following:
mainnpm itfrom the repo root)readme.md, help docs, inline docs & comments, etc.)Please also be sure to completed the CLA as it's required for your PR to be merged. A github comment will prompt you if you haven't already.
Learn more about contributing to Architect here.
Thanks again!
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.