Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix search not showing in sub-directories #2586

Merged
merged 1 commit into from
Mar 9, 2025

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Mar 9, 2025

This fixes a problem where the search was not displaying in sub-directories. The problem was that searcher.js only exists in one place, and was loading searchindex.json with a relative path. However, when loading from a subdirectory, it needs the appropriate .. to reach the root of the book.

Fixes #2585

This fixes a problem where the search was not displaying in
sub-directories. The problem was that `searcher.js` only exists in one
place, and was loading `searchindex.json` with a relative path. However,
when loading from a subdirectory, it needs the appropriate `..` to reach
the root of the book.
@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Mar 9, 2025
@ehuss ehuss enabled auto-merge March 9, 2025 16:13
@ehuss ehuss added this pull request to the merge queue Mar 9, 2025
Merged via the queue into rust-lang:master with commit 105d836 Mar 9, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: waiting on a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search doesn't open on pages that are in a subfolder
2 participants