Check when the navigation breaks the app

This happens when the app content redirects the location by using
the window.location reference. It is not possible to lock the user
to a specific location but it is possibile to prompt a dialog and
ask him to proceed.