Router Params not being propagated to route #2310
-
ReproductionSteps to reproduce the bugThrough the use of a Routerlink such as The repository contains a folder called frontend with a project initialized using Vite with the addition of the Vue router only. It is set in a way to replicate the same structure present in my work project where we are facing the same issue. App.vue contains 3 RouterLink entries, and I tried to set the profile route with The pages/ProfileView.vue file is just a simple example showing not only the contents of the prop but also the content of both query string and route params. Expected behaviorThe params must be populated when reaching the component and filling the props Actual behaviorAn empty object is being propagated as the params, thus setting empty values on the props Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You have a warning in the console explaining it:
https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 |
Beta Was this translation helpful? Give feedback.
You have a warning in the console explaining it:
https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22