You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/basics/RouteMatching.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ A route path is [a string pattern](/docs/Glossary.md#routepattern) that is used
20
20
<Route path="/hello/:name">// matches /hello/michael and /hello/ryan
21
21
<Route path="/hello(/:name)">// matches /hello, /hello/michael, and /hello/ryan
22
22
<Route path="/files/*.*">// matches /files/hello.jpg and /files/path/to/hello.jpg
23
+
<Route path="/:slug?/home">// matches /[anything]/home like /github/home
23
24
```
24
25
25
26
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