]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: fix broken links
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 18 Sep 2020 08:24:28 +0000 (10:24 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 18 Sep 2020 08:24:28 +0000 (10:24 +0200)
docs/guide/advanced/navigation-guards.md
docs/guide/migration/index.md

index 5e88c081dc9cfa29ab93fc4f86d100d5a9be9e95..124f3d117a2712f49321b9c4266265170bf9dfa5 100644 (file)
@@ -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.
+<!-- TODO: maybe add links to examples -->
+
+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:
 
index 9db1a2290c810a73b50c7a4035470388334af1fe..c25a85408b988db2f18a7dd61bb57eb90747c29b 100644 (file)
@@ -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).
+<!-- Learn more about relative links [in the cookbook](/cookbook/relative-links.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.
+
+<!-- TODO: maybe a cookbook entry -->
 
 ### `$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