Skip to content

Fix sidebar links to use absolute paths to prevent 404 errors#2730

Closed
madyankin wants to merge 1 commit into
rust-lang:masterfrom
madyankin:fix-sidebar-absolute-paths
Closed

Fix sidebar links to use absolute paths to prevent 404 errors#2730
madyankin wants to merge 1 commit into
rust-lang:masterfrom
madyankin:fix-sidebar-absolute-paths

Conversation

@madyankin

Copy link
Copy Markdown

This change makes all sidebar navigation links absolute paths (starting with '/') instead of relative paths, preventing duplicate path segments when navigating between nested pages.

Added test to verify all sidebar links are absolute paths.

Fixes #1764

This change makes all sidebar navigation links absolute paths (starting with '/') instead of relative paths, preventing duplicate path segments when navigating between nested pages.

Added test to verify all sidebar links are absolute paths.

Fixes rust-lang#1764
@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Jun 13, 2025
@ehuss

ehuss commented Jun 15, 2025

Copy link
Copy Markdown
Contributor

I don't think this approach will work, since the book may not be rooted at any specific URL path. I believe something more along the lines of #1802.

@ehuss

ehuss commented Jul 14, 2025

Copy link
Copy Markdown
Contributor

I'm going to close as I don't think this approach will work. Thanks, though!

@ehuss ehuss closed this Jul 14, 2025
@rustbot rustbot removed the S-waiting-on-review Status: waiting on a review label Jul 14, 2025
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.

site-url not respected in links

3 participants