I am composing an app with tabs and an ionNavBar
with a similar layout to the settings app in iOS. I have tabs that go several levels deep, each level with its own state and associated url. When I refresh the page while inside one of the deeper levels, I lose the navigation hierarchy.
Example
Say I have a tab “animals”.
- I tap on one of list items, “dogs”. A list of dogs slides into view, I am in the state
tabs.animals.dogs
and the url is “#/animals/dogs”. - I tap on “Corgi”, and the detail view for Corgi slides into view. The state is now
tabs.animals.dogs.corgi
, and the url is “#/animals/dogs/corgi”. Right now the back button displays and I could tap it to navigate back to “dogs”. - I refresh the page, and I am still in the animals tab displaying “Corgi”, but the back button no longer shows to take me back to “dogs”. Further more, if I tap the “animals” tab, the view does not go back to the animals list.
Is this a bug? How do I make the navigation system behave the way I am expecting it to?