clibs / website

The source code for clibs.org.
https://www.clibs.org
3 stars 2 forks source link

Some package not found by url #5

Closed Isty001 closed 4 years ago

Isty001 commented 4 years ago

When I open a package with a capital letter in its name (for example https://www.clibs.org/packages/Gioyik/slim_color) then I'm redirected to the lower case url (https://www.clibs.org/packages/gioyik/slim_color/) and it's not found.

It works fine if I search for Gioyik/slim_color however after an F5 this will also redirect to the non-existent lower case path.

stephenmathieson commented 4 years ago

Interesting, clearly a bug. The 404 after a refresh is due to there not being a static (.html) file for the uppercase version.

We should either support both uppercase and lowercase versions or normalize this so package names are always lowercase.

We try to normalize the package names elsewhere, so that's probably the best route to take.