Skip to content

Keep store sort and filter params in URL query - #536

Open
IC3P3 wants to merge 7 commits into
Drop-OSS:developfrom
IC3P3:feature/store-query
Open

IC3P3 wants to merge 7 commits into
Drop-OSS:developfrom
IC3P3:feature/store-query

Conversation

@IC3P3

@IC3P3 IC3P3 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Refs #276. This covers reload and navigation, not persistence between sessions and clients.

The store's sort and filters are now kept in the URL, so they survive a reload and going back from a game page. Also makes filtered views shareable.

  • Adds sort, order, tags, platform and companyActions to the query, while defaults are left out for a cleaner URL
  • Invalid values are ignored
  • Uses router.replace, so it doesn't add history entries
  • Clicking on the header's store link again resets all the filters
  • API filter query is now built from the URL filter query, so logic isn't duplicated

Unselecting the tag from the /store/t/[id] isn't saved on a reload, but I think it's not that important, as the page is about this specific tag anyway.

Screenshot

grafik

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant