Skip to content

Commit 451e02c

Browse files
Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
1 parent 69925ef commit 451e02c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/content/docs/en/guides/internationalization.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Set this option when all routes will have their `/locale/` prefix in their URL a
174174

175175
Even with your default locale routes prefixed, this behaviour does not apply by default to your site's index page. This allows you to have a home page that exists outside of your configured locale structure, where all of your localized routes are prefixed except the home URL of your site.
176176

177-
You can opt out of this behavior so that your main site URL will also redirect to a prefixed, localized route for your default locale. When `prefixDefaultLocale: true` is set, you can additionally configure `redirectToDefaultLocale: true`. This will ensure that `src/pages/index.astro` will redirect to `src/pages/[defaultLocale]/index.astro`.
177+
You can opt out of this behavior so that your main site URL will also redirect to a prefixed, localized route for your default locale. When `prefixDefaultLocale: true` is set, you can additionally configure `redirectToDefaultLocale: true`. This will ensure that the home URL (`/`) generated by `src/pages/index.astro` will redirect to `/[defaultLocale]/`.
178178

179179
### `manual`
180180

src/content/docs/en/guides/upgrade-to/v6.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ In most cases, the only action needed is to review your existing project's deplo
110110

111111
### Changed: `i18n.routing.redirectToDefaultLocale` default value
112112

113-
In Astro v5.0, the `i18n.routing.redirectToDefaultLocale` default value was `true` and the `i18n.routing.prefixDefaultLocale` default value was `false`. However, the resulting redirects could cause infinite loops.
113+
In Astro v5.0, the `i18n.routing.redirectToDefaultLocale` default value was `true`. When combined with the `i18n.routing.prefixDefaultLocale` default value of `false`, the resulting redirects could cause infinite loops.
114114

115115
In Astro v6.0, `i18n.routing.redirectToDefaultLocale` now defaults to `false`. Additionally, it can now only be used if `i18n.routing.prefixDefaultLocale` is set to `true`.
116116

0 commit comments

Comments
 (0)