How to get back to from page when click back button in ionic

#1

How to get back to from page when click back button in ionic


it work properly but from any page i click setings page then click back button it goto home i want it to goto from page where i click settings page please help