router.setRoot functionality for ionic-vue

Hi,

Is there a way to programatically set the root page in ionic-vue?
I can push with router.push(), and go back with router.go(-1), but i need a way to clean the stack and set one active page, without other pages/components existing in background(stack).

\
Torgny

Mm, not this isn’t possible. setRoot was an old method back when Ionic didn’t do proper routing. The option would be to do something like replace and remove

https://next.router.vuejs.org/api/#removeroute

https://next.router.vuejs.org/api/#replace-1