aequos-solutions / modern-data-visualizer

Documentation for the Modern Data Visualizer solution
https://aequos-solutions.github.io/modern-data-visualizer/
8 stars 7 forks source link

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

Open d-turley opened 1 year ago

d-turley commented 1 year ago

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):

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.

TrannumS commented 1 year ago

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