Skip to content

Commit 895c6a1

Browse files
Add warning about infinite redirect loops in redirects documentation (#2429)
* Update create/redirects.mdx Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> * Update warning message for redirect rules Clarified warning about redirect rules to prevent infinite loops. --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
1 parent 948b613 commit 895c6a1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

create/redirects.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ To match a wildcard path, use `*` after a parameter. In this example, `/beta/:sl
3232
]
3333
```
3434

35+
<Warning>
36+
The destination slug cannot match to the source slug. For example, if your docs are hosted at `/docs`, avoid:
37+
```json
38+
{
39+
"source": "/docs/:slug*",
40+
"destination": "/:slug*"
41+
}
42+
```
43+
</Warning>
44+
3545
## Broken links
3646

3747
Catch broken links with our CLI. [Install the CLI](/installation) and run the command:

0 commit comments

Comments
 (0)