Redirect to /crate/:crate/:version in more places instead of 404ing
Open
Nobody has claimed this yet.
A-frontend
E-easy
mentor
P-low
- Dominant language
- Rust
- Stars
- 1.2k
- Forks
- 232
- Avg merge
- 11h 35m
- Merged PRs (30d)
- 60
Description
Currently, the following places redirect to https://docs.rs/crate/bat/0.12.1:
- https://docs.rs/crate/bat/
- https://docs.rs/crate/bat/0.12.1/
- https://docs.rs/bat
- https://docs.rs/bat/
- https://docs.rs/bat/0.12.1
- https://docs.rs/bat/0.12.1/
- https://docs.rs/bat/0.12.1/bat
- https://docs.rs/bat/0.12.1/i686-unknown-linux-gnu
- https://docs.rs/bat/0.12.1/bat/
- https://docs.rs/bat/0.12.1/i686-unknown-linux-gnu/
- https://docs.rs/bat/0.12.1/i686-unknown-linux-gnu/bat
- https://docs.rs/bat/0.12.1/i686-unknown-linux-gnu/bat/
The following places give a 404:
We should be more consistent and redirect the above as well.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the 404 for https://docs.rs/crate/bat/0.12.1// and compare it with the listed URLs that already redirect. Trace the request-routing entry point responsible for crate paths; done means the double-slash URL redirects consistently to https://docs.rs/crate/bat/0.12.1, with coverage for the corrected behavior if the project has routing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100