Skip to content

Commit 376ac21

Browse files
committed
update docs
1 parent 4174694 commit 376ac21

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/content-routing.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,19 @@ To set a custom route for content:
4444
3. Enter your custom route in the "Path" field
4545
4. Save the content
4646

47+
> [!note]
48+
>
49+
> Remember to uncheck the checkbox `Is default pattern` if not using default pattern
50+
4751
### Route Constraints
4852

4953
You can define URL patterns with parameters:
5054

5155
```plaintext
52-
/blog/{year}/{month}/{slug}
56+
blog/{year}/{month}/{slug}
5357
```
5458

55-
Define constraints to validate parameters:
59+
Define [constraints](https://laravel.com/docs/11.x/routing#parameters-regular-expression-constraints) to validate parameters:
5660

5761
```php
5862
[
@@ -72,6 +76,8 @@ After setting a content route with parameters, you can access those variables in
7276

7377
This allows you to dynamically display content based on the URL parameters.
7478

79+
For more information on route parameters, refer to the [Laravel documentation](https://laravel.com/docs/11.x/routing#route-parameters).
80+
7581
---
7682

7783
## Content Slugs

0 commit comments

Comments
 (0)