Back button navigation between ion-nav-view

My problem is that I have a side menu plus tabs, and one ion-nav-view used for all the side menu views, so when I navigate from the tab view to one of the side menu view, Im hiding the tab, and expecting a back button to get back to previous tab view, but there is none, because of the side menu ion-nav-view has no history. Any idea to solve this? I could manually add a back button, but I wouldn’t know which tab I came from.

Thanks

Implement a correct view hierarchy.
If not you will also get problems with state-transition-animations. Like you want to go backwards but the app animates a forward and so on.

Already solved here https://github.com/driftyco/ionic/issues/1666