Code Pen:
Background:
On line 37 of the HTML i am specifying that I want to navigate to #/profile/1
when i click the profile tab…
<ion-tab title="Profile" icon="ion-person" ui-sref="tabs.profile({profileId:1})">
The Bug:
- From the home page click the profile tab and view that you are now on profile 1
- Click the home tab
- Click the profile tab and view that it still takes you to profile 1
- Click the home tab
- Click the button on the home page that says profile 2
- Click the home tab
- Click the profile tab
You will now see that you are on profile 2. And there is no back button. So ionic now believes profile 2 is the root for the profile tab.
Desired result when profile 2 link is clicked:
- Navigate to profile 2 page
- Home tab remains active tab
- Back button displays that can take you back to home page
- Slide to go back can take you back to home page