Switching between tabs, clicking back should go back to previous page


#1

I know am doing something wrong here but not sure exactly where am missing.

Am having three tabs, tab1, tab2, tab3. From tab1, on click of a button, am pushing a state like,

$state.go('tab2.contactUs');

Now, if I click on back button ($ionicHistory.goBack()), it is taking me to tab1. But I would like to come back to ‘tab2’ home page.

Any thoughts ?