Any idea why neither:
$location.url(redirectURL,true);
~ OR ~
$location.path(redirectURL).replace(true);
Are not replacing navigation history items? Or did I not understand what replace is supposed to do?
Thanks.
Call replace
first, as:
$location.replace();
$location.path("somewhere");
I think this works too:
$location.replace().path("somewhere");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With