Skip to content

Commit cd6031e

Browse files
taiontimdorr
authored andcommitted
Remove docs on absolute paths (#3615)
1 parent 00c44b7 commit cd6031e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/guides/RouteConfiguration.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ URL | Components
106106

107107
### Decoupling the UI from the URL
108108

109-
It would be nice if we could remove the `/inbox` segment from the `/inbox/messages/:id` URL pattern, but still render `Message` nested inside the `App -> Inbox` UI. Absolute `path`s let us do exactly that.
109+
It would be nice if we could remove the `/inbox` segment from the `/inbox/messages/:id` URL pattern, but still render `Message` nested inside the `App -> Inbox` UI. Pathless routes let us do exactly that.
110110

111111
```js
112112
render((
@@ -125,7 +125,7 @@ render((
125125
), document.body)
126126
```
127127

128-
The ability to use absolute paths in deeply nested routes gives us complete control over what the URL looks like! We don't have to add more segments to the URL just to get nested UI.
128+
The ability to use declare routes without paths gives us complete control over what the URL looks like! We don't have to add more segments to the URL just to get nested UI.
129129

130130
We can now render the following URLs:
131131

@@ -136,8 +136,6 @@ URL | Components
136136
`/inbox` | `App -> Inbox`
137137
`/messages/:id` | `App -> Inbox -> Message`
138138

139-
**Note**: Absolute paths may not be used in route config that is [dynamically loaded](/docs/guides/DynamicRouting.md).
140-
141139
### Preserving URLs
142140

143141
Wait a minute ... we just changed a URL! [That's not cool](http://www.w3.org/Provider/Style/URI.html). Now everyone who had a link to `/inbox/messages/5` has a **broken link**. :(
@@ -184,7 +182,7 @@ Continuing with our example above, if a user clicked on a link to `/about` from
184182

185183
Since [routes](/docs/Glossary.md#route) are usually nested, it's useful to use a concise nested syntax like [JSX](https://facebook.github.io/jsx/) to describe their relationship to one another. However, you may also use an array of plain [route](/docs/Glossary.md#route) objects if you prefer to avoid using JSX.
186184

187-
The `<Redirect>` configuration helper is not available when using plain routes, so you have to set up the redirect using the `onEnter` hook.
185+
The `<Redirect>` configuration helper is not available when using plain routes, so you have to set up the redirect using the `onEnter` hook.
188186

189187
The route config we've discussed up to this point could also be specified like this:
190188

0 commit comments

Comments
 (0)