Skip to content

Getting 404 for empty input #770

@Illusion47586

Description

@Illusion47586

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
image
Don't type anything in the search box and press enter.
image
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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions