diff options
author | 2022-01-27 12:39:19 +0100 | |
---|---|---|
committer | 2022-01-27 12:39:19 +0100 | |
commit | 4bd629b3d8b0fb5a1edd1c3aa30772094dc9deec (patch) | |
tree | 57c3bd750871db4b3d37bd2eca487a70c4433ec0 /pydis_site/constants.py | |
parent | Resource 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/constants.py')
0 files changed, 0 insertions, 0 deletions