Inconsistent route priority with rest parameters and configured redirects #8129
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: redirects
Related to the redirects feature (scope)
What version of
astro
are you using?2.10.9
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Linux
What browser are you using?
Describe the Bug
Hello!
When a project has both rest parameters and configured redirects, the route priority is inconsistent across paths of different depths.
More specifically, single-layer paths will prioritise configured redirects, whereas multi-layer paths will prioritise rest parameters.
What's the expected result?
The rest parameter would be prioritised in both cases or the configured redirect would be prioritised in both cases.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/astro-inconsistent-route-priority
Participation
The text was updated successfully, but these errors were encountered: