Skip to content

[Bug]: Filters and pagination get stuck/broken on the browse issues page #269

@yush-1018

Description

@yush-1018

What happened?

Filters (Level, Repos, State) and pagination (Next/Prev) are currently buggy on the /issues page:

  1. Stuck Filters: Once you set any filter (like choosing a repo or L1 difficulty), selecting "ALL LEVELS" or "ALL REPOS" does not clear the filter. The URL keeps the parameters (e.g. ?difficulty=E), and the list stays filtered.

  2. Broken Pagination: If you navigate pages, the Next/Prev buttons get stuck or use stale values because they don't capture the updated URL search parameters.

Steps to Reproduce

  1. Go to /issues.
  2. Select any filter, like set Difficulty to "L1". (URL updates to /issues?difficulty=E).
  3. Click the dropdown again and select "ALL LEVELS".
  4. The list remains filtered and difficulty=E stays in the URL.
  5. Click NEXT to go to page 2, and then try changing a filter. The query parameters will overwrite each other incorrectly.

Expected Behavior

  • Resetting a filter to "ALL LEVELS" or "ALL REPOS" should clear the parameter from the URL query string.
  • When navigating pages (Next/Prev) or changing filters, all active filter parameters should be preserved without getting overwritten or lost.

Where does this occur?

Other

Environment

No response

Screenshots / Logs

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions