Skip to content

Commit c25810d

Browse files
authored
Fix some stuff in catch-all docs (#897)
1 parent cfbe675 commit c25810d

File tree

1 file changed

+2
-2
lines changed
  • src/routes/solid-start/building-your-application

1 file changed

+2
-2
lines changed

src/routes/solid-start/building-your-application/routing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ They are defined using square brackets with `...` before the label for the route
178178
```
179179

180180
A catch-all route will have one parameter which is a forward-slash delimited string of all the URL segments after the last valid segment.
181-
For example, with the route `[..post]` and a URL path of `/post/foo` the `params` object returned from the `useParams` primitive will have a `post` property with the value of `foo`.
182-
For a URL path of `/post/foo/baz` it will be `foo/baz`.
181+
For example, with the route `[...post]` and a URL path of `/post/foo` the `params` object returned from the `useParams` primitive will have a `post` property with the value of `post/foo`.
182+
For a URL path of `/post/foo/baz` it will be `post/foo/baz`.
183183

184184
```tsx title="routes/blog/[...post].tsx"
185185
import { useParams } from "@solidjs/router";

0 commit comments

Comments
 (0)