From: NiceHwang Date: Wed, 13 Jul 2022 08:34:30 +0000 (+0900) Subject: docs: incorrect reference links (#1470) X-Git-Tag: v4.1.3~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66fd98776256c4390b5d1b63d91459e91154d468;p=thirdparty%2Fvuejs%2Frouter.git docs: incorrect reference links (#1470) The content points to "optional params", but the link goes to "repeatable params". Fixed links to point to "optional params". --- diff --git a/packages/docs/guide/essentials/navigation.md b/packages/docs/guide/essentials/navigation.md index 6d16639a..14ab4a24 100644 --- a/packages/docs/guide/essentials/navigation.md +++ b/packages/docs/guide/essentials/navigation.md @@ -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.