$ionicHistory.goBack(); does not work when i update my project to 1.3.0. But it does work if i downgrade it back to 1.2.4. With no other changes. I started i new project, and $ionicHistory.goBack() does work with 1.3.0 in a clean project. But still in my project when i update to 1.3.0 it quits working. Again no other changes other than executing the “ionic lib update” command.
If i could reproduce it in a clean project i would submit a github issue.
The only thing i can think of is maybe because my bower.json has these resolutions.
same problem here, i found that when console.log($ionicHistory.viewHistory());
the backView is null if the next view is in different history stack in 1.3.0.
However in 1.2.4, the backView is available even both view is in different history stack
Hi, don’t know what is the bug @babinc has, but i was having this problem with a tabs app. What should be the proper way to do it now? It’s a simple app with some tabs with a list of items / details.
We decided that we would not support cross-tab “history”, meaning that back button and goBack should only effect the current tab. Does that make sense?
This was actually a bug that it ever worked that way. We never intended to support cross-tab history. This follows iOS conventions and matches how Ionic 2 works. If the community feels strongly about this, we could reconsider and revert the change. We think it’s the right UX the way it is now, though.
I agree with you that this seems the logic thing to do, but don’t know if going from a tab template to a single view (not attached to the tabs) would be considered cross tabs.
We’re doing a lot of tab to single page transitions in our app, and this latest change breaks the app. Please consider adding an option to allow this functionality! Are there any workarounds in the meantime?
My app is also a tabs apps. I use the $ionicHistory.goBack() when going from a state without the tabs, back to a state with the tabs. Not sure if that helps. But that is just how my app is layed out. This is not exact code of my app. But I use the $ionicHistory.goBack() when going from ‘someOtherState’ to possibly ‘tab.home’ (if that was the last page).
So how are we supposed to do this now? Have the tabs shown the whole time? Facebook, Instagram, and the Twitter app seem to use cross-tab history. With some pages that have tabs and some that do not.