From db1a980e23acfb17d8b5adb2e8d8a5743835d53d Mon Sep 17 00:00:00 2001 From: Suven-p Date: Sun, 27 Oct 2024 20:03:43 +0545 Subject: [PATCH] Modify only required parts of url --- src/router.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/router.js b/src/router.js index 393708e42..8832eaf9a 100644 --- a/src/router.js +++ b/src/router.js @@ -205,12 +205,11 @@ router.beforeEach((to, from) => { // Without this check, the router will be stuck in an infinite loop if (to.path !== from.path && !to.redirectedFrom) { return { - path: to.path, + ...to, query: { ...to.query, ...from.query, }, - params: to.params, }; } });