Skip to content

Commit 5e0c5e9

Browse files
committed
Merge pull request #2223 from rackt/revert-2214-patch-1
Revert "[Docs] Add path syntax example"
2 parents 5b052b2 + 91905f9 commit 5e0c5e9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

docs/guides/basics/RouteMatching.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ A route path is [a string pattern](/docs/Glossary.md#routepattern) that is used
2020
<Route path="/hello/:name"> // matches /hello/michael and /hello/ryan
2121
<Route path="/hello(/:name)"> // matches /hello, /hello/michael, and /hello/ryan
2222
<Route path="/files/*.*"> // matches /files/hello.jpg and /files/path/to/hello.jpg
23-
<Route path="/:slug?/home"> // matches /[anything]/home like /github/home
2423
```
2524

2625
If a route uses a relative `path`, it builds upon the accumulated `path` of its ancestors. Nested routes may opt-out of this behavior by [using an absolute `path`](RouteConfiguration.md#decoupling-the-ui-from-the-url).

0 commit comments

Comments
 (0)