Routing not working on nested route

After routing to dashboard, I cant go back to the previous page

Clicking logout should be routed to Login, but when clicking logout, it does not work
The weird thing is, the Ionic Cycle works but does not display the page
Also the onIonViewDidLeave cycle is not being called, does this mean the leave event didnot trigger? but why?
image

This is how I routed back to login page
image

This might help. You should only be using nested routes for tabs. Everything else should be Shared URLs. Please read this documentation to know more. Nesting within Tabs is actually being removed in Ionic v6 - here.

1 Like

thank you for sharing your reply this is really helpful for me

1 Like

Hi guys, got it fix, the reason why the previous page is not working its because, ion-page is not defined/element tag for ion-page is not in use, you have to add ion-page as root element, to make the navigation work.