Skip to content

[BUG] Clicking the clear button for one filter removes all filters from URL #115

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

Open
d-turley opened this issue Jul 27, 2023 · 1 comment
Assignees
Labels
bug Something isn't working Next Release An issue that will be fixed or a new feature that will be added to one of the next versions of the s

Comments

@d-turley
Copy link

d-turley commented Jul 27, 2023

Version used
1.5.4

Describe the bug
When values are applied from two or more multi-select filters, and then the user clicks the Clear button for only one of those filters, the Data Visualizer web part updates correctly, however the URL in the browser has all filter information removed from the query string. The "f" parameter is deleted from the query string, even though other filter values are still selected on the page. Upon refreshing the page, the users' selected filter values are no longer applied.

To Reproduce
Steps to reproduce the behavior:

  1. Configure a page with a Data Filters web part and a Data Visualizer web part.
  2. Configure the Data Filters web part with at least two filters that use the Checkbox and/or Taxonomy picker template.
  3. Select at least one value from each of the filters, clicking the Apply button
  4. Observe the results are filtered and the browser URL contains the filter values in the "f" query string parameter
  5. Click the Clear button for only one of the filters, not all of them
  6. Observe that the results on the page are filtered according to the remaining selected filter values, but also observe that the URL in the browser no longer contains any filter values
  7. Refresh the page and observe that no filters are selected

Expected behavior
Expecting that the URL will always contain the currently applied filter values.

Desktop (please complete the following information):

  • Edge and Chrome (latest)

Additional information
We are trying to implement a "Share search results" feature that copies the current URL of the browser, but if the user takes the steps outlined above and then tries to share the URL from their browser, other users are not able to view the correct search results.

@d-turley d-turley added the bug Something isn't working label Jul 27, 2023
@Laul0 Laul0 added the Needs: Investigations To solve this issue, additional investigations are needed label Jul 28, 2023
@TrannumS
Copy link

TrannumS commented Aug 1, 2023

Hi @d-turley ,

Thanks for your feedback. This issue has been reproduced by our team and the bug is added in our backlog with priority.
We will work on it and keep you in touch when we will be able to release a version with a fix.

Thank you

@TrannumS TrannumS added Next Release An issue that will be fixed or a new feature that will be added to one of the next versions of the s and removed Needs: Investigations To solve this issue, additional investigations are needed labels Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Next Release An issue that will be fixed or a new feature that will be added to one of the next versions of the s
Projects
None yet
Development

No branches or pull requests

3 participants