rust-lang/docs.rs

Switching versions from rustdoc source pages leads to a weird result

Closed this issue · 4 comments

Reproduction steps:

  1. go to https://docs.rs/toml/0.5.11/src/toml/de.rs.html#2076-2156
  2. using the menu, go to any other version (or just go to https://docs.rs/crate/toml/0.9.6/target-redirect/x86_64-unknown-linux-gnu/toml/toml/de.rs.html)
  3. you will be redirected to a serach for "rs"

i believe this is because for non source pages, the middle element of the filename is the item name.

Hi,

we have some heuristic on the paths to figure out if we have a file to redirect to in the other version, and fallback to a search.

It looks like the file (/src/toml/de.rs.html) doesn't exist in version 0.9.6,

or am I missing something?

The search should be for de, not for rs.

ah, now i get it, you're right

fixed in #2933 , not deployed yet