Scroll position not maintained when using $ionicHistory.goBack();


We have some views that don’t use the default ionic back button (hide-back-button="true"), and have instead implemented our own button with some logic etc. In the end, $ionicHistory.goBack(); is called to go back.

However, in cases where we have done this, the ion-content on the previous state is scrolling to the top when we go back, instead of maintaining its scroll position as normal (the view is cached). If I turn the default back button on again, it maintains the scroll position

Is there some way we can make ionic keep the scroll position even when not using the default back button?