Nested state, page refresh, show back button to parent state?


I am having this issue with a nested state.

I want the back button to be able to take the user to the parent state if they land on the app/page or the page gets reloaded. I know I can force show the back button but there is no history attached to it.

How can I force show and force the state of the back button to the parent?

Will any settings here work?

$scope.$on('$ionicView.beforeEnter', function (event, viewData) {
        viewData.enableBack = true;

Any help would be greatly appreciated!



I know this is an old question, but did you find a solution? I need to use the back button to allow the user to go to the “home” state of the app after they have entered some information on their user profile as part of my new user signup flow.