Skip to content

Searching does not reset page #5804

@ThatGravyBoat

Description

@ThatGravyBoat

Please confirm the following.

What browsers are you seeing the problem on?

Firefox

Describe the bug

Changing the search does not reset the page, this causes the results sometimes be empty in situations like being on page 10 then searching flower pots as there is only 1 page of results for that query in resource packs.

Steps to reproduce

  1. Go to page 10 of results in Resource Packs
  2. Search flower pots
  3. Observe that there are no results
  4. Change the url to remove the page=10
  5. Observe that there are now results

Expected behavior

The page to reset to 1 as there is not guaranteed there will be x number of pages for the new query.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    websiteRelates to Modrinth.com web frontend

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions