Can't have any routes that start with `index`
ericswpark opened this issue · 2 comments
ericswpark commented
Astro Info
Astro v4.16.16
Node v20.18.0
System Linux (x64)
Package Manager npm
Output static
Adapter none
Integrations @astrojs/mdx
@astrojs/tailwind
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Given the following pages/
directory:
pages/
blog/
index.astro
index.xml.ts
Navigating to blog/
will work (use index.astro
), but navigating to blog/index.xml
will result in a 404.
What's the expected result?
index*
files should map to other routes.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-99jtakub
Participation
- I am willing to submit a pull request for this issue.
matthewp commented
If you remove index.astro
does it work? You can't have two routes that match and expect them both to work.