#i18n experiemntal routing creates a redirect page in the root

4 messages · Page 1 of 1 (latest)

humble girder
#

So im fiddling with the new i18n router in SSG mode. I have my pages setup with 2 locales, and pages arranged into folders, using getStaticPaths() function. One of my pages in the root of pages is not in the [lang] folders, and it does not get generated, and instead, a page with redirect (meta tag) to "defaultLocale" in the config is generated - that is when i access http://localhost:4321/ I get redirected to http://localhost:4321/cs/. Is this intended, or should I create a ticket? Does the i18n router work well with getStaticPaths() inside Astro files? Thanks!

#

By the way i'm using Astro 3.6.4.

#

With v4.0.0-beta.7 it's the same thing

#

Also this happens only when prefixDefaultLocale is set to "true", otherwise the page is generated normally