Skip to content

Commit 5ca7958

Browse files
authored
Merge pull request remix-run#3787 from viniciusdacal/location-descriptor-link
Fix broken link to location descriptor reference
2 parents 97b4704 + ae1c5b9 commit 5ca7958

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/API.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ A `<Link>` can know when the route it links to is active and automatically apply
105105

106106
#### Props
107107
##### `to`
108-
A [location descriptor](https://github.com/ReactTraining/history/blob/master/docs/Glossary.md#locationdescriptor). Usually this is a string or an object, with the following semantics:
108+
A [location descriptor](https://github.com/reactjs/react-router/blob/master/docs/Glossary.md#locationdescriptor). Usually this is a string or an object, with the following semantics:
109109

110110
* If it's a string it represents the absolute path to link to, e.g. `/users/123` (relative paths are not supported).
111111
* If it's an object it can have four keys:

docs/Glossary.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ A *hash* is a string that represents the hash portion of the URL. It is synonymo
6969
type LeaveHook = (prevState: RouterState) => any;
7070
```
7171

72-
A *leave hook* is a user-defined function that is called when a route is about to be unmounted. It receives the previous [router state](#routerstate) as its first argument.
72+
A *leave hook* is a user-defined function that is called when a route is about to be unmounted. It receives the previous [router state](#routerstate) as its first argument.
7373

7474
## Location
7575

@@ -89,7 +89,7 @@ A *location* answers two important (philosophical) questions:
8989
- Where am I?
9090
- How did I get here?
9191

92-
New locations are typically created each time the URL changes. You can read more about locations in [the `history` docs](https://github.com/reactjs/history/blob/master/docs/Location.md).
92+
New locations are typically created each time the URL changes. You can read more about locations in [the `history` docs](https://github.com/mjackson/history/blob/v2.x/docs/Location.md).
9393

9494
### LocationDescriptor
9595

@@ -104,7 +104,7 @@ New locations are typically created each time the URL changes. You can read more
104104

105105
A *location descriptor* is the pushable analogue of a location. Locations tell you where you are; you create location descriptors to say where to go.
106106

107-
You can read more about location descriptors in [the `history` docs](https://github.com/reactjs/history/blob/master/docs/Location.md).
107+
You can read more about location descriptors in [the `history` docs](https://github.com/mjackson/history/blob/v2.x/docs/Location.md).
108108

109109
## LocationKey
110110

0 commit comments

Comments
 (0)