[Visualize] Linked search doesn't work when go back in browser history #57977
Labels
Feature:Visualizations
Generic visualization features (in case no more specific feature label is available)
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version:
< 8.0.0
Elasticsearch version:
any
Server OS version:
any
Browser version:
any
Browser OS version:
any
Original install method (e.g. download page, yum, from source, etc.):
from source
Describe the bug:
If you created a visualization based on saved search from
discover
, then pressback
browser button, it will becomelinked
again, but the search is incorrect (query and filters from the saved search are not applied).Steps to reproduce:
discover
with customquery
andfilter(s)
unlink
button (filters
andquery
will be streamed to the current app state)linked
again, butquery
andfilter
are not included in the search, just missedExpected behavior:
The visualization should be based on the saved search
Screenshots (if relevant):
Example (saved search filtering by category "Womens clothing"):
after unlinking saved search (correct behavior)
after pressing back button (changed results, seems like the filters aren't put back in place):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
The text was updated successfully, but these errors were encountered: