i have setup my route links like this
- matches screen
http://localhost:4200/#/nav/matches
- my profile
http://localhost:4200/#/nav/my-profile
- edit profile
http://localhost:4200/#/nav/edit-profile
- my photos
http://localhost:4200/#/nav/my-photos
- settings
http://localhost:4200/#/nav/settings
- my orders
http://localhost:4200/#/nav/my-orders
the problem iam facing is whenever i clicks the hardware back button after navigation through all these pages
app exits to goole default screen or some other url i searched before (like https://stackoverflow.com/) some times it comes to matches screen which is my default screen and exits ( navigating away from my site )
i want to go back to previous page of my application instead of exiting directly like
5 ==> 4==> 3 ==> 2 ==> 1 ==> exit