ScopedHistory block does not work for back button #132597
Labels
bug
Fixes for quality problems that affect the customer experience
loe:needs-research
This issue requires some research before it can be worked on or estimated
NeededFor:VisEditors
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Trying to block a navigation via calling
scopedHistory.block
does not work for back button navigation in the browser (the callback is called, but the navigation happens anyway and the URL changes).To reproduce:
here:
kibana/x-pack/plugins/lens/public/plugin.ts
Line 321 in 395a98b
Go to Lens app (Visualize Library > New visualization > Lens)
In browser console, execute
Click back button
Confirm modal is shown, but the URL changes back to
/app/visualize
The text was updated successfully, but these errors were encountered: