Error while running $router.push in Vue js 3 Vite #14904
Answered
by
sullyD64
pratik227
asked this question in
General - Components / Directives / etc
-
|
I have crated one route for Login. But it gives error in router.push When I do router.push. it gives error.
boot file. |
Beta Was this translation helpful? Give feedback.
Answered by
sullyD64
Nov 16, 2022
Replies: 1 comment
-
|
Hi, this is actually intended behavior starting from |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yusufkandemir
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, this is actually intended behavior starting from
vue-router v4.1.4. As noted here, artificial params (liketest) are discarded when navigating, as it is considered bad practice to have params which are lost when refreshing the page. See the link for some workarounds :)