You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro v4.5.12
Node v20.11.1
System Linux (x64)
Package Manager pnpm
Output static
Adapter none
Integrations @astrojs/mdx
@astrojs/tailwind
astro-icon
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I have the dynamic route src/pages/[...lang]/index.astro in my project (prefixDefaultLocale: false). It runs on dev server without any issues and builds correctly. But the build log shows that it generates the routes: /index.html, /en/index.html, /en/index.html and /en/en/index.html:
This use case seems to be a bit of a stretch to me.
This use case uses an API to retrieve all the configured locales and generate pages from it. However, the project is configured to not prefix the default locale. The use case tries to build an invalid page on purpose.
I'm not sure what the correct way to go here is and what needs to be fixed.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I have the dynamic route src/pages/[...lang]/index.astro in my project (prefixDefaultLocale: false). It runs on dev server without any issues and builds correctly. But the build log shows that it generates the routes: /index.html, /en/index.html, /en/index.html and /en/en/index.html:
What's the expected result?
Show correct build output in logs.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-quy3ic?file=src%2Fpages%2F%5B...lang%5D%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: