Open andreas-aeschlimann opened 5 years ago
Bump any news on this?
I wonder if deep view checking will help with this issue:
In the StackController
class, we are determining the back url
in the pop
method by:
const view = views[views.length - deep - 1];
let url = view.url;
const viewSavedData = view.savedData;
I tried to replace the code above with:
let view = views[views.length - deep - 1];
let viewSavedData = view.savedData;
while (viewSavedData.get('primary')) {
view = viewSavedData.get('primary').outlet.stackCtrl.activeView;
viewSavedData = view.savedData;
}
let url = view.url;
And it properly fixed the issue in #23218
Do I miss something here?
Ok, nevermind. Version 5.6.6 fixes that issue
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: