Commit 4f5af43a authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: router: do not crash when navigating back to an hidden view

Some erp5 view action use a TALES expression to be visible only in draft state.
When validation a workflow transition dialog, ERP5JS tries to go back to the previous view which is now hidden.

In such case, switch back to the default document view.
parent 1b49b35f
Pipeline #15427 failed with stage
in 0 seconds