Skip to content

Commit

Permalink
[Docs] Update link.md (#11414)
Browse files Browse the repository at this point in the history
  • Loading branch information
saul-atomrigs committed Apr 8, 2024
1 parent 00ffa36 commit e404ba0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Expand Up @@ -202,6 +202,7 @@
- ryanflorence
- ryanhiebert
- sanketshah19
- saul-atomrigs
- sbolel
- scarf005
- senseibarni
Expand Down
2 changes: 1 addition & 1 deletion docs/components/link.md
Expand Up @@ -91,7 +91,7 @@ function EditContact() {
}
```

Please note that `relative: "path"` only impacts the resolution of a relative path. It does not change the the "starting" location for that relative path resolution. This resolution is always relative to the current location in the Route hierarchy (i.e., the route `Link` is rendered in).
Please note that `relative: "path"` only impacts the resolution of a relative path. It does not change the "starting" location for that relative path resolution. This resolution is always relative to the current location in the Route hierarchy (i.e., the route `Link` is rendered in).

If you wish to use path-relative routing against the current URL instead of the route hierarchy, you can do that with the current [`location`][use-location] and the `URL` constructor (note the trailing slash behavior):

Expand Down

0 comments on commit e404ba0

Please sign in to comment.