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

404 search page on doc.rust-lang.org broken when path contains a slash #90311

Closed
jsha opened this issue Oct 26, 2021 · 1 comment
Closed

404 search page on doc.rust-lang.org broken when path contains a slash #90311

jsha opened this issue Oct 26, 2021 · 1 comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools A-rustdoc-js Area: Rustdoc's JS front-end

Comments

@jsha
Copy link
Contributor

jsha commented Oct 26, 2021

Steps to reproduce:

  1. Visit https://doc.rust-lang.org/nughtly/std.
  2. Get a 404 page with a search box.
  3. Type "string" in the search and hit enter.

Expected result: go to https://doc.rust-lang.org/std/index.html?search=string (successful response)

Actual result: go to https://doc.rust-lang.org/nughtly/std/index.html?search=string (still a 404)

Note: everything works fine with a path that has no slash, e.g. https://doc.rust-lang.org/nughtly

@jsha jsha added A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools A-rustdoc-js Area: Rustdoc's JS front-end labels Oct 26, 2021
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Feb 28, 2022
Update search location from a relative path to absolute

This should address issue rust-lang#90311.
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Feb 28, 2022
Update search location from a relative path to absolute

This should address issue rust-lang#90311.
@avborhanian
Copy link
Contributor

I think this can be closed now, looks like the expected behavior occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools A-rustdoc-js Area: Rustdoc's JS front-end
Projects
None yet
Development

No branches or pull requests

3 participants