From 96e445c7cd5d50dc2b8abaa0dc9e8a475c5478dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Ag=C3=BCero?= Date: Fri, 9 Oct 2015 10:03:51 +0200 Subject: [PATCH] Add path syntax example Yesterday I spent a lot of time to figure out how to do this. In fact, I found like 4-5 search results regarding the same issue. There is no place that actually tells you that you can do something like "/:user?/brands/:brand?/home" using this syntax. --- docs/guides/basics/RouteMatching.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/guides/basics/RouteMatching.md b/docs/guides/basics/RouteMatching.md index 2390635539..da865ef404 100644 --- a/docs/guides/basics/RouteMatching.md +++ b/docs/guides/basics/RouteMatching.md @@ -20,6 +20,7 @@ A route path is [a string pattern](/docs/Glossary.md#routepattern) that is used // matches /hello/michael and /hello/ryan // matches /hello, /hello/michael, and /hello/ryan // matches /files/hello.jpg and /files/path/to/hello.jpg + // matches /[anything]/home like /github/home ``` 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).