aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/context_processors.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2022-01-27 12:39:19 +0100
committerGravatar Leon Sandøy <[email protected]>2022-01-27 12:39:19 +0100
commit4bd629b3d8b0fb5a1edd1c3aa30772094dc9deec (patch)
tree57c3bd750871db4b3d37bd2eca487a70c4433ec0 /pydis_site/context_processors.py
parentResource filtering on the client, pt 1. (diff)
Reflect and retain filter state in URL params.
This commits makes two important changes: - Whenever we click on filter checkboxes, the URL is immediately updated to include parameters that represent the chosen options. For example, if you select Beginner complexity, the url is updated with ?complexity=beginner. - Whenever the page is loaded, we deserialize any parameters that exist in the URL and change the filter state to match it. In other words, refreshing the page at any time retains the current state, and you can now link people to exactly the filter results that you want to share.
Diffstat (limited to 'pydis_site/context_processors.py')
0 files changed, 0 insertions, 0 deletions