in Router.navigate method, even if the process.then goes to error case, we are not rejecting the promise, and setting the instruction.canonical form. which causes location.path to change, even if the canDeactivate returns false.
Issue: this is causing the navigation to happen twice. And also url changes even if I returned false in canDeactivate.
in Router.navigate method, even if the process.then goes to error case, we are not rejecting the promise, and setting the instruction.canonical form. which causes location.path to change, even if the canDeactivate returns false.
Issue: this is causing the navigation to happen twice. And also url changes even if I returned false in canDeactivate.
when the pipeline.Process fails(canDeactivate returns false), we should finishNavigating but also reject the promise.
my fix for this is