Yes, that’s what I am doing for now and it’s working.
But what I would like is some sort of “reset” of the whole router state, or prevent going back to the previous state, but avoid modifying backButton behaviour.
That’s what I already do, but still can go back to the first that was pushed.
So when I open the app, I land to /email
then type the email address and on tapping next I do router.push(/password)
then if I am able to log in router.replace('/home')
but if I tap de back button I’m able to go back to /email
Sorry for the delay – You are using Ionic Vue correctly. I don’t think we expose all the tools necessary to accomplish this. One thing you could do as a workaround is create a route guard on the /login and /login-password routes and have those prevent navigation to the pages when the user is already logged in.
We have seen use cases like this in Ionic Angular and Ionic React too and we are looking into ways we can better address this use case.