Skip to content

astro

Invalid redirect destination.

Astro

Invalid redirect destination.

Invalid redirect destination.

import DontEditWarning from '~/components/DontEditWarning.astro'

Example error message:
InvalidRedirectDestination: The redirect from "/posts" to "/blog" is invalid. The destination "/blog" does not match any existing route in your project.

What went wrong?

A dynamic redirect destination must match an existing route pattern and include all dynamic parameters from the source route. This error occurs when a redirect with dynamic parameters points to a destination that doesn't correspond to any page in your project, or when the destination route has fewer dynamic parameters than the source route.

See Also: