Scenario:
Index Resources > New Resource Form > Resource Detail
Expectations:
When I go from Index Resources to New Resource Form, the back button should go back to Index resources.
When I submit the New Resource Form, I should be taken to view the Resource Detail, the back button should go back to Index resources.
Actual Result:
When I hit the back button from Resource Detail, after the form has been submitted, it would take me back to the New Todo Form.
This is a copy of How to manipulate a back button pointer to point to a previous-previous View, but it proposes a solution using $ionicViewService, but it has been deprecated for $ionicHistory.
How to do it then with $ionicHistory?