Ionic doesn’t track history too well if you’re going between tabbed and non-tabbed layouts. Here’s a drop-dead simple implementation of a history tracker:
Then to navigate back from your controller, just use the goBack
method on the historyState
service.