From: Eduardo San Martin Morote Date: Fri, 18 Sep 2020 08:24:28 +0000 (+0200) Subject: docs: fix broken links X-Git-Tag: v4.0.0-beta.10~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a299881c35448f56dbc04d764711b1d17a232906;p=thirdparty%2Fvuejs%2Frouter.git docs: fix broken links --- diff --git a/docs/guide/advanced/navigation-guards.md b/docs/guide/advanced/navigation-guards.md index 5e88c081..124f3d11 100644 --- a/docs/guide/advanced/navigation-guards.md +++ b/docs/guide/advanced/navigation-guards.md @@ -100,7 +100,9 @@ router.afterEach((to, from) => { }) ``` -They are useful for analytics, [changing the title of the page](/cookbook/page-title.md), [accessibility](/cookbook/announcing-navigation.md) and many other things. + + +They are useful for analytics, changing the title of the page, accessibility features like announcing the page and many other things. They also reflect [navigation failures](./navigation-failures.md) as the third argument: diff --git a/docs/guide/migration/index.md b/docs/guide/migration/index.md index 9db1a229..c25a8540 100644 --- a/docs/guide/migration/index.md +++ b/docs/guide/migration/index.md @@ -79,9 +79,13 @@ const routes = [ ] ``` -Note this will work if `path` was `/parent/` as the relative location `home` to `/parent/` is indeed `/parent/home` but the relative location of `home` to `/parent` is `/home`. Learn more about relative links [in the cookbook](/cookbook/relative-links.md). +Note this will work if `path` was `/parent/` as the relative location `home` to `/parent/` is indeed `/parent/home` but the relative location of `home` to `/parent` is `/home`. -**Reason**: This is to make trailing slash behavior consistent: by default all routes allow a trailing slash. [It can be disabled](/cookbook/trailing-slashes.md). + + +**Reason**: This is to make trailing slash behavior consistent: by default all routes allow a trailing slash. It can be disabled by using the `strict` option and manually appending (or not) a slash to the routes. + + ### `$route` properties Encoding @@ -93,7 +97,7 @@ Given any [normalized route location](/api/#routelocationnormalized): - `hash` is now decoded, that way it can be copied over: `router.push({ hash: $route.hash })` and be used directly in [scrollBehavior](/api/#scrollbehavior)'s `el` option. - When using `push`, `resolve` and `replace` and providing a `string` location or a `path` property in an object, **it must be encoded**. On the other hand, `params`, `query` and `hash` must be provided in its unencoded version. -**Reason**: This allows to easily copy existing properties of a location when calling `router.push()` and `router.resolve()`, make it consistent across browsers. Learn more about encoding [in the cookbook](#TODO). +**Reason**: This allows to easily copy existing properties of a location when calling `router.push()` and `router.resolve()`, make it consistent across browsers. ## Breaking Changes: API Changes