Dynamic routes in Astro redirects
error
#8639
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: redirects
Related to the redirects feature (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
n/a
Describe the Bug
Astro supports a
redirects
field inastro.config
. According to our docs this should be able to support dynamic routes:I’m seeing errors for each of the following cases:
In each case, attempting to load a route from one of the
/old/
paths, throws:The dynamic routes at the new location each contain
getStaticPaths()
.What's the expected result?
Dynamic redirects containing the same parameters redirect to the new location as expected.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-gjbu5b?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: