- Notifications
You must be signed in to change notification settings - Fork655
frontend: Redirect when space in crate name#11580
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
@rust-lang/crates-io any thoughts? |
I'm assuming the use case here is something like a keyword bookmark I can see why it would be useful (since I use keywords all the time), but I'm not sure it makes sense to complicate the frontend route handling to support this, since the search does ignore leading or trailing whitespace correctly. I'm probably -0.5 on changing this, but I also don't feel very strongly. |
On my side it was more a UX improvement If I go tohttps://crates.io/crates/syn ![]() But If I make a small typo (and a bad copy-paste) and go here https://crates.io/crates/%20syn ![]() The message "syn: Crate not found" is not great ![]() So either
![]() ![]() Both fixes are easy and seems OK |
I'm okay with it. It doesn't overcomplicate things and brings some improvement. |
Hi
When there is leading or trailing space in the crate name, the crate is not found (obviously)
https://crates.io/crates/syn Working
https://crates.io/crates/%20syn Not found
I think this could be useful, mostly if we paste a crate name