Skip to content

Commit 39ab0a8

Browse files
committed
Fix docs on useNavigate relative
1 parent b23d7b5 commit 39ab0a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/components/link.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ A relative `<Link to>` value (that does not begin with `/`) resolves relative to
6464

6565
## `relative`
6666

67-
By default, links are relative to the route hierarchy, so `..` will go up one `Route` level. Occasionally, you may find that you have matching URL patterns that do not make sense to be nested, and you'd prefer to use relative _path_ routing. You can opt into this behavior with `relative`:
67+
By default, links are relative to the route hierarchy (`relative="route"`), so `..` will go up one `Route` level. Occasionally, you may find that you have matching URL patterns that do not make sense to be nested, and you'd prefer to use relative _path_ routing. You can opt into this behavior with `relative="path"`:
6868

6969
```jsx
7070
// Contact and EditContact do not share additional UI layout

docs/hooks/use-navigate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ When using the [`<ScrollRestoration>`][scrollrestoration] component, you can dis
6666

6767
## `options.relative`
6868

69-
By default, navigation is relative to the route hierarchy, so `..` will go up one `Route` level. Occasionally, you may find that you have matching URL patterns that do not make sense to be nested, and you'd prefer to use relative _path_ routing. You can opt into this behavior with `relative: true`:
69+
By default, navigation is relative to the route hierarchy (`relative: "route"`), so `..` will go up one `Route` level. Occasionally, you may find that you have matching URL patterns that do not make sense to be nested, and you'd prefer to use relative _path_ routing. You can opt into this behavior with `relative: "path"`:
7070

7171
```jsx
7272
// Contact and EditContact do not share additional UI layout

0 commit comments

Comments
 (0)