and then go back to page A (via the browser back button or an ion-back-button ), calling openPageB again does nothing. When I use absolute routes everything works normally.
Mike suggests that using relative routing here is incorrect. Could somebody explain why navigation succeeds the first time and why relative routing is used incorrectly in this case?
Same problem here, this is not working and putting the base routes all the time is really not ideal.
I’ve come here after having reached the issue where you commented on github.
Did you open a new one?
// Ask the router to build up the UrlTree
const relativeRoute = this.router.createUrlTree(['success'], {
relativeTo: this.route
});
// Private the UrlTree directly
this.navController.navigateForward(relativeRoute);
It works for me and is thousand times better this way!