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
Sidebar links ignore <base href> on sites served from a sub-path #40
Sidebar links are rendered root-relative (href="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/docs/introduction"). A root-relative URL ignores <base href>, so a site exported with shelldocs build --base-href /my-repo/ and served from https://user.github.io/my-repo/ links to https://user.github.io/docs/introduction, which is a 404.
Probably the same for breadcrumbs, prev/next, the TOC's page links, package and version selectors and search results. Worth checking every place that renders a NavigationNode.Url.
Suggested fix
Render navigation links base-relative (docs/introduction, no leading slash) so they resolve against <base href>, or prefix them with NavigationManager.BaseUri's path. Add a test that renders the layout and asserts no chrome link starts with /, and check a --base-href export in a browser.
Activity