Changing route params with RouterLink component #2168
-
I have a case where I have two links in the sidebar: [
{
name: "check/reports/kpi/:type/:id?",
params: {
type: "project",
id: undefined,
},
},
{
name: "check/reports/kpi/:type/:id?",
params: {
type: "organisation",
id: undefined,
},
}
] When I am situated on the URL |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Passing an empty string should also work but explicitly passing |
Beta Was this translation helpful? Give feedback.
Passing an empty string should also work but explicitly passing
null
or undefined shouldn't implicitly preserve existing params either