Skip to content

Optional param casted automatically on routerLink even if we don't want optional param (when param is already set in url) #2247

Discussion options

You must be logged in to vote

I can't really tell what I'm supposed to be looking at in those screenshots.

Perhaps this is what you're looking for?

https://router.vuejs.org/guide/essentials/navigation.html#Navigate-to-a-different-location

For optional params, you can provide an empty string ("") or null as the value to remove it.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@posva
Comment options

@JulienMalcouronne
Comment options

@JulienMalcouronne
Comment options

@skirtles-code
Comment options

Answer selected by posva
@JulienMalcouronne
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants