-
-
Notifications
You must be signed in to change notification settings - Fork 303
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
All /browse routes require a trailing slash #219
Comments
Ya, thanks for bringing this up. I noticed the same thing a while back. It's a bug I introduced when I built the |
@mjackson I would like to help with this. Appreciate any heads up for where I should be paying attention to. |
It'll probably be something around here. At the |
BTW when this is fixed we should probably also update this code to redirect to the version of the URL w/out the trailing slash, to prevent a double redirect. |
I came across this bug when wanting to go to https://unpkg.com/browse/@testing-library/react, but I saw @kevin940726 already created #225 to fix it 🙏 |
I was trying to look at a package by modifying the URL and I kept getting a 404 page until I discovered I needed the trailing slash to work.
Example:
Doesn't work:
https://unpkg.com/browse/[email protected]
Works:
https://unpkg.com/browse/[email protected]/
Same thing for sub directories
Doesn't work:
https://unpkg.com/browse/[email protected]/es
Works:
https://unpkg.com/browse/[email protected]/es/
The text was updated successfully, but these errors were encountered: