ImpactMarkets / impact-markets-app

Other
2 stars 0 forks source link

Reflect tabs in URL #133

Closed goblinodds closed 7 months ago

goblinodds commented 10 months ago

It would be nice if the filters (tags and sorting) on the project list, and the tabs on the project pages (the ones at the top and the ones at the bottom related to comments) could be reflected in the URL.

The goal is that you can use your browser navigation (back and forward) to undo or redo tab changes, that you can link to the project list with a particular sort order, and that, if you sort the project list in some non-default way, click a project, and then go back using the browser navigation, you get back to the project list sorted according to what you had selected most recently.

This is how it works for tabs: https://mantine.dev/core/tabs/#usage-with-nextjs-router.

I imagine it'll work analogously for the filters. Feel free to split the ticket as you see fit.

NOTE: split ticket, "Reflect filters in URL" is now here