We have the following, pretty simple, case:
We’ve the Page with list of article previews, let name it news page.
When pressing on some of the previews, the app loads another page, let name it article details page, by the NavController.push method.
The problem is that when User
go to article details page,
from that to another page(from tabs navbar),
and then press on the news page in tabs navbar, User is redirecting to last opened article details page.
But EXR for our app, its to load tab root page whenever the tab is selected.
As temporary solution we’ve added following method in TabsPage. Method calls on (ionSelect) event/output from ion-tab component:
using this.app.getRootNav() will get you the navController of the page Tabs
now when you push an Article page, it will be above News page and when clicking back button and it will bring you back to news page.
I hope this could help you and it answers your question.