Skip to content

Commit 64dbce9

Browse files
astrobot-houstondelucisArmandPhilippot
authored
ci: update error reference docs (withastro#13924)
Co-authored-by: delucis <357379+delucis@users.noreply.github.com> Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>
1 parent b0cd304 commit 64dbce9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/content/docs/en/reference/errors/invalid-redirect-destination.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ import DontEditWarning from '~/components/DontEditWarning.astro'
1313
<DontEditWarning />
1414

1515

16-
> **InvalidRedirectDestination**: The redirect from "FROM" to "TO" is invalid. The destination "TO" does not match any existing route in your project.
16+
> **Example error message:**<br/>
17+
InvalidRedirectDestination: The redirect from "/posts" to "/blog" is invalid. The destination "/blog" does not match any existing route in your project.
1718

1819
## What went wrong?
19-
A dynamic redirect destination must match an existing route pattern.
20+
A dynamic redirect destination must match an existing route pattern and include
21+
all dynamic parameters from the source route.
2022
This error occurs when a redirect with dynamic parameters points to a destination
21-
that doesn't correspond to any page in your project.
23+
that doesn't correspond to any page in your project, or when the destination route
24+
has fewer dynamic parameters than the source route.
2225

2326
**See Also:**
2427
- [Configured redirects](/en/guides/routing/#configured-redirects)

0 commit comments

Comments
 (0)