Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store compare page UI filters into URL #1484

Merged
merged 3 commits into from
Nov 16, 2022
Merged

Store compare page UI filters into URL #1484

merged 3 commits into from
Nov 16, 2022

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Nov 1, 2022

This enables users to quickly share links to the compare page with specific filters applied. Suggested by @nnethercote.

When clicking on quick links, only the filters that were active when the page was loaded will be forwarded. If you want to respect the current filter selection when using a quick link, reload the page first (F5). Otherwise the quick link would have to be generated dynamically, which seemed like unnecessary hassle.

Copy link
Contributor

@nnethercote nnethercote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know the website code at all, but this seems reasonable.

site/static/compare/script.js Outdated Show resolved Hide resolved
@Kobzol Kobzol merged commit af0125b into master Nov 16, 2022
@Kobzol Kobzol deleted the compare-page-url branch November 16, 2022 21:49
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.

3 participants