Skip to content

Commit a299881

Browse files
committed
docs: fix broken links
1 parent 8010e57 commit a299881

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

docs/guide/advanced/navigation-guards.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ router.afterEach((to, from) => {
100100
})
101101
```
102102

103-
They are useful for analytics, [changing the title of the page](/cookbook/page-title.md), [accessibility](/cookbook/announcing-navigation.md) and many other things.
103+
<!-- TODO: maybe add links to examples -->
104+
105+
They are useful for analytics, changing the title of the page, accessibility features like announcing the page and many other things.
104106

105107
They also reflect [navigation failures](./navigation-failures.md) as the third argument:
106108

docs/guide/migration/index.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,13 @@ const routes = [
7979
]
8080
```
8181

82-
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).
82+
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`.
8383

84-
**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).
84+
<!-- Learn more about relative links [in the cookbook](/cookbook/relative-links.md). -->
85+
86+
**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.
87+
88+
<!-- TODO: maybe a cookbook entry -->
8589

8690
### `$route` properties Encoding
8791

@@ -93,7 +97,7 @@ Given any [normalized route ___location](/api/#routelocationnormalized):
9397
- `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.
9498
- 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.
9599

96-
**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).
100+
**Reason**: This allows to easily copy existing properties of a ___location when calling `router.push()` and `router.resolve()`, make it consistent across browsers.
97101

98102
## Breaking Changes: API Changes
99103

0 commit comments

Comments
 (0)