crflynn / pypistats.org

PyPI downloads analytics dashboard
https://pypistats.org/
139 stars 10 forks source link

Introduction of redirections in some cases. #7

Closed funilrys closed 5 years ago

funilrys commented 5 years ago

Indeed, before this patch, if we had only one result, we had to click then we get the result. Now if there is only one package in the results, we redirect directly to its stats page.

In the other side, I do not think that returning 404 when we requests for example /packages/fjwiofjowejfiewjfojio is a good idea. That is why, I simply added a redirection to the /search/fjwiofjowejfiewjfojio page in that case.

crflynn commented 5 years ago

Works great and a better UX for sure 👍