Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/content/docs/en/reference/error-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ The following reference is a complete list of the errors you may encounter while
- [**AstroGlobNoMatch**](/en/reference/errors/astro-glob-no-match/)<br/>Astro.glob() did not match any files.
- [**RedirectWithNoLocation**](/en/reference/errors/redirect-with-no-location/)<br/>A redirect must be given a location with the `Location` header.
- [**UnsupportedExternalRedirect**](/en/reference/errors/unsupported-external-redirect/)<br/>Unsupported or malformed URL.
- [**InvalidRedirectDestination**](/en/reference/errors/invalid-redirect-destination/)<br/>Invalid redirect destination.
- [**InvalidDynamicRoute**](/en/reference/errors/invalid-dynamic-route/)<br/>Invalid dynamic route.
- [**MissingSharp**](/en/reference/errors/missing-sharp/)<br/>Could not find Sharp.
- [**UnknownViteError**](/en/reference/errors/unknown-vite-error/)<br/>Unknown Vite Error.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# NOTE: This file is auto-generated from 'scripts/error-docgen.mjs'
# Do not make edits to it directly, they will be overwritten.
# Instead, change this file: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
# Translators, please remove this note and the <DontEditWarning/> component.

title: Invalid redirect destination.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
import DontEditWarning from '~/components/DontEditWarning.astro'

<DontEditWarning />


> **InvalidRedirectDestination**: The redirect from "FROM" to "TO" is invalid. The destination "TO" does not match any existing route in your project.

## What went wrong?
A dynamic redirect destination must match an existing route pattern.
This error occurs when a redirect with dynamic parameters points to a destination
that doesn't correspond to any page in your project.

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