Prevent clear history ion tabs navigation

Hi guys,

I’m developing an app based on ion-tabs. I want to freely use$ionicHistory.goBack(); , but at the moment if I go to another tab I have $ionicHistory cleared (reference to previous view is undefined).

Is there a way to disable history clear on each tab change? I need something that also maintain android back button working correctly.

Thank you