From 97d63fb871e4480ad310e829a82247df030ae461 Mon Sep 17 00:00:00 2001 From: ShaneK Date: Fri, 16 Oct 2026 10:08:59 -0700 Subject: [PATCH] docs(vue): document useIonRouter replace using 'none' direction to preserve stack --- docs/vue/utility-functions.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/vue/utility-functions.mdx b/docs/vue/utility-functions.mdx index 6993064013..0fed8d8f31 100644 --- a/docs/vue/utility-functions.mdx +++ b/docs/vue/utility-functions.mdx @@ -69,7 +69,7 @@ interface UseIonRouterResult { forward: (routerAnimation?: AnimationBuilder) => void; navigate: ( location: string | Location, - routerDirection?: 'forward' | 'back' | 'root', + routerDirection?: 'forward' | 'back' | 'root' | 'none', routerAction?: 'push' | 'pop' | 'replace', routerAnimation?: AnimationBuilder ) => void; @@ -80,7 +80,7 @@ useIonRouter(): UseIonRouterResult; - The `push` method is the equivalent of calling `ionRouter.navigate(location, 'forward', 'push', animation)`. -- The `replace` method is the equivalent of calling `ionRouter.navigate(location, 'root', 'replace', animation)`. +- The `replace` method is the equivalent of calling `ionRouter.navigate(location, 'none', 'replace', animation)`. It swaps the current page for the new one and keeps the pages beneath it, so the back button still returns to the previous page. No transition plays unless an `animation` is passed. To clear the navigation stack instead, call `ionRouter.navigate(location, 'root', 'replace', animation)`. Refer to the [Vue Navigation Documentation](./navigation#navigating-using-useionrouter) for more usage examples.