I’m facing an issue : I’m using the ionic tabs class. I have various tabs such as customers, contacts, etc.
Each tab contains only an ion-nav-view which name is different for each tab. However, in my contacts tab, I’ve a list of contacts. On click on one item on this list, I want to show the detailed contact. To do this, I have two states, which urls are /contacts for the list of contacts and /contacts/:id for one specific contact.
Both states are loaded in the same view, contained in the tab concerning the contacts. I don’t know if I’m really clear.
So, it works fine, when I click on my contacts tab, I’ve the list of my contacts. And when I click on one of these contacts, I can see it more precisely. And the back button in my header bar is working well.
However, my problem is that the link (meaning when I click on my contacts tab) is replaced : it is to say, when I click first on my contacts list, I see my list of contacts. Then, if I click on one contact, I see the contact. BUT, if from this last view, I click on an another tab such as customers, and I came back to my contacts tab. I see the last view, meaning one contact precisely, instead of all my contacts. It seems that the link behind the nav tabs is replaced, from /contacts to /contacts/0 for example. And i don’t understand why.
Any clue ?