When setting the prefixDefaultLocale = false, fallback to default is not working at homepage. #10724
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: i18n
Related to internalization (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome
Describe the Bug
when setting below options, the fallback for SG homepage is not working, the
Location
in response is a null string.i18n: { defaultLocale: "default", locales: [ "default", "fr", ], fallback: { "fr": 'default' }, routing: { prefixDefaultLocale: false } }, trailingSlash: "never"
This is the response,
Request URL: https://astro.avepoint.com/uk Request Method: GET Status Code: 302 Found Remote Address: 10.1.0.182:443 Referrer Policy: strict-origin-when-cross-origin Date: Tue, 09 Apr 2024 07:31:48 GMT Last-Modified: Tuesday, 09-Apr-2024 07:31:48 UTC Location: Referrer-Policy: no-referrer-when-downgrade
What's the expected result?
It's should be fallback to default homepage.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-xfj9kv?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: