I am facing an issue with the following navigation flow:
User lands on the Contacts page -> clicks on a button to navigate to the NewContact page using navController.push() method -> from there, user is directed to the ContactCreated page.
How can I modify the functionality so that when the user taps the "Back" button on the ContactCreated page, instead of returning to the previous NewContact page, they are taken back to the root "Contacts" page? Essentially, I need to replace a page in the navigation stack dynamically.
For this project, I am working with Ionic 3 framework.