Skip to content

Commit 0a24caf

Browse files
committed
docs: note about index routes and relative links
closes #12122
1 parent 9081f16 commit 0a24caf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api/components/Link.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ Consider a route hierarchy where a parent route pattern is "blog" and a child ro
9393
- **route** - default, resolves the link relative to the route pattern. In the example above a relative link of `".."` will remove both `:slug/edit` segments back to "/blog".
9494
- **path** - relative to the path so `..` will only remove one URL segment up to "/blog/:slug"
9595

96+
Note that index routes and layout routes have no paths so they are not included in the relative path calculation.
97+
9698
### reloadDocument
9799

98100
[modes: framework, data, declarative]

0 commit comments

Comments
 (0)