Android back button visiting entire history to come back on home page previously in jquery mobile it was not visiting entire web site to go back to home page.
suppose my page visits like
Home - > Result List -> Result Detalis - > back to Result List -> Again Result Details
Now if i press Android back button it goes like
Result Details – >Result List – > Result Detalis --> Result List - > Home
Are you pressing a ion-nav-back-button when going back to your results? If not, then that would explain why.
UI-router will treat each state change as a new log in your history, even if your technically going to a “previous state” ( the state that you were in before the current one)
Is there any update on this …
yes i am using ion-nav-back-button inside ion-nav-bar to coming back and for going forwrad i am using ng-href or $state.go("") …but still my android back button visiting entire visited history…Like
suppose i visited
Home - > Result List -> Result Detalis - > back to Result List -> Again Result Details
so it should go to home page after clicking two times on device back button but it visiting entire visited page and needs to click 5 times to go back to Home…
So I created a sample project with a situation like you have described and could not reproduce you issue. The nav-back-button actually behaves like you expected.
I have a doubt about this too.
Let’s say Im taking a quiz. And after the 50 questions, I want the user to go back to the Quiz Home. How can I go to the home and avoid the user to hit the back button?