pastelsky/bundlephobia

Getting 404 for empty input

Open

#770 aperta il 4 apr 2023

Vedi su GitHub
 (2 commenti) (1 reazione) (0 assegnatari)JavaScript (250 fork)batch import
buggood first issue

Metriche repository

Star
 (8477 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Describe the bug It looks like it is expected behaviour but I don't think we should allow an empty input call from the frontend.

To Reproduce Don't type anything in the search box and press enter. It takes you to https://bundlephobia.com/package which gives 404.

Expected behavior I believe we should just do nothing when the input is empty.

Let me know if the suggested fix is good and I can make a relevant PR for the same.

Guida contributor