Dynamic routes take precedence over index.astro in 4.2 #9724
Labels
- P5: urgent
Fix build-breaking bugs affecting most users, should be released ASAP (priority)
pkg: astro
Related to the core `astro` package (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I've hit a potentially breaking change when updating from 3.5.5 to 4.2.0:
[...dynamic].astro
routes seem to have higher priority thanindex.astro
after the upgrade. Apologies if this is an expected change, but I was unable to findit in the changelog.
There is a minimal stackblitz reproduction - with 3.x this would have rendered the Index page.
What's the expected result?
In the stackblitz example I would expect the Index page to be rendered, but instead the dynamic route is rendered.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-pqgx5b?file=src%2Fpages%2F%5B...dynamic%5D.astro
Participation
The text was updated successfully, but these errors were encountered: