Nav views with side menus lose history when switching tab


#1

Hi everybody. I’m trying to migrate a native app to Ionic but I’m experiencing one major issue which is almost certainly a blocker if I can’t at least work around it.

Basically, I have an application with multiple tabs and each of them has a split view. I attached a plunker to demonstrate what a simplified app version would look like. My problem is that when switching tab, ion nav views do not keep their history. To be more specific about my example: after selecting a playlist from the side menu and switching tab to “Search” and then back to “Playlists”, the navigation history on that tab is not preserved and gets reset to its “root” state.

I think I’m pretty sure this happens when the ion-nav-view element is not a direct child of the ion-tab element (as in my case, since it’s inside a ion-side-menu-content), but I’m not quite sure.

Overall, I feel the app states in the example might need some love as well. What am I doing anything wrong? Is it a known Ionic limitation?

Here’s a plunker with the app: http://plnkr.co/edit/UZp3EE3l6X5IIdvpu477

Thank you!