]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: incorrect reference links (#1470)
authorNiceHwang <niceplugin@gmail.com>
Wed, 13 Jul 2022 08:34:30 +0000 (17:34 +0900)
committerGitHub <noreply@github.com>
Wed, 13 Jul 2022 08:34:30 +0000 (10:34 +0200)
The content points to "optional params", but the link goes to "repeatable params".
Fixed links to point to "optional params".

packages/docs/guide/essentials/navigation.md

index 6d16639aca07244bc753b34abad2c7ec6b245ee3..14ab4a24c7ef48c1a9e16c0b742ffc713f18ff6f 100644 (file)
@@ -56,7 +56,7 @@ router.push({ name: 'user', params: { username } }) // -> /user/eduardo
 router.push({ path: '/user', params: { username } }) // -> /user
 ```
 
-When specifying `params`, make sure to either provide a `string` or `number` (or an array of these for [repeatable params](./route-matching-syntax.md#repeatable-params)). **Any other type (like `undefined`, `false`, etc) will be automatically stringified**. For [optional params](./route-matching-syntax.md#repeatable-params), you can provide an empty string (`""`) as the value to skip it.
+When specifying `params`, make sure to either provide a `string` or `number` (or an array of these for [repeatable params](./route-matching-syntax.md#repeatable-params)). **Any other type (like `undefined`, `false`, etc) will be automatically stringified**. For [optional params](./route-matching-syntax.md#optional-parameters), you can provide an empty string (`""`) as the value to skip it.
 
 Since the prop `to` accepts the same kind of object as `router.push`, the exact same rules apply to both of them.