Switching versions from rustdoc source pages leads to a weird result
Closed this issue · 4 comments
lolbinarycat commented
Reproduction steps:
- go to https://docs.rs/toml/0.5.11/src/toml/de.rs.html#2076-2156
- 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)
- 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.
syphar commented
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?
lolbinarycat commented
The search should be for de, not for rs.
syphar commented
ah, now i get it, you're right