Skip to content

Conversation

@ehuss
Copy link
Contributor

@ehuss ehuss commented Oct 31, 2025

This fixes links on the print page that go to an internal destination that is not a chapter. The path would have the wrong relative destination, and would be broken. The logic for detecting this was incorrectly only checking if a link went outside the book, or didn't have an html extension. This doesn't work for links to HTML files that are inside the book, but not one of the chapters.

ehuss added 2 commits October 30, 2025 18:04
An example where this can happen is a link to a page that was renamed
and redirected, or just a normal HTML file.
This fixes links on the print page that go to an internal destination
that is not a chapter. The path would have the wrong relative
destination, and would be broken. The logic for detecting this was
incorrectly only checking if a link went outside the book, or didn't
have an html extension. This doesn't work for links to HTML files that
are inside the book, but not one of the chapters.
@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Oct 31, 2025
@ehuss ehuss enabled auto-merge October 31, 2025 01:38
@ehuss ehuss added this pull request to the merge queue Oct 31, 2025
Merged via the queue into rust-lang:master with commit 8670bcc Oct 31, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: waiting on a review label Oct 31, 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.

2 participants