You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/en/reference/errors/invalid-redirect-destination.mdx
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,15 @@ import DontEditWarning from '~/components/DontEditWarning.astro'
13
13
<DontEditWarning />
14
14
15
15
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.
17
18
18
19
## 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.
20
22
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.
0 commit comments