You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you navigate from a tab page to another tab page and then go back with the ion-back-button, you will always end up at tab index 0 of the first tab page.
Expected behavior:
Instead, the app should go back to the tab where the user came from.
Steps to reproduce:
To illustrate the problem, I have taken the sample starter tab app of Ionic and extended it with a second tab page. This is the setup:
First tab page (TabsPage):
/tabs/tab1/
/tabs/tab2/
/tabs/tab3/
Second tab page (OtherTabsPage):
/other-tabs/other-tab1/
Reproduce the problem like this:
Open tab2
Click the button ("open nested tab") to go to the new tab page (other-tab1)
Now click the back button on the top left, you will end up on tab1 instead of tab2
liamdebeasi
changed the title
bug: ion-back-button does not work properly on nested tabs
bug: angular, ion-back-button not going back to correct tab after leaving main tabs context
Apr 21, 2021
Bug Report
Ionic version:
[x] 4.x
Current behavior:
When you navigate from a tab page to another tab page and then go back with the ion-back-button, you will always end up at tab index 0 of the first tab page.
Expected behavior:
Instead, the app should go back to the tab where the user came from.
Steps to reproduce:
To illustrate the problem, I have taken the sample starter tab app of Ionic and extended it with a second tab page. This is the setup:
First tab page (TabsPage):
Second tab page (OtherTabsPage):
Reproduce the problem like this:
Related code:
You can easily try it out here:
https://stackblitz.com/edit/ionic-v4-angular-tabs-hxxnpm
Ionic info:
The text was updated successfully, but these errors were encountered: