Skip to content

Keep documentation sidebar links within the selected port - #59

Merged
tony merged 1 commit into
mainfrom
fix-port-sidebar-routes
Sep 30, 2026
Merged

tony merged 1 commit into
mainfrom
fix-port-sidebar-routes

Conversation

@tony

@tony tony commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

From a TypeScript page rendered by the root build, “Filtering and queries” linked to /en/concepts/queries/ even though the TypeScript page exists. Sidebar links now use the page’s selected port and version through the existing URL helper.

The browser check covers desktop and mobile sidebars on TypeScript latest and Python stable pages. It fails against the old builder with the reported URL mismatch. pnpm test passes in 47.81 seconds; publication checks remain separate.

why: Root builds also render owned port pages. Their shared sidebar
links used the build context and sent readers to general documentation.

what:
- Build sidebar URLs from the page port and version
- Cover both sidebar copies at desktop and phone widths, including
  Python stable and TypeScript latest
- Prove the browser assertion fails with the original URL builder

Validation: pnpm test passed in 47.81 seconds.
@tony
tony deployed to docs-preview September 30, 2026 22:59 — with GitHub Actions Active
@tony
tony merged commit dabd748 into main Sep 30, 2026
3 checks passed
@tony
tony deployed to docs-preview-cleanup September 30, 2026 23:17 — with GitHub Actions Active

This branch was successfully deployed

2 active deployments
docs-preview-cleanup — 765af2f4 Deployed Sep 30, 2026 by tony via cleanup #52
docs-preview — 765af2f4 Deployed Sep 30, 2026 by tony via publish-preview / publish #359
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.

1 participant