Skip to content

Commit

Permalink
Update .changeset/cyan-grapes-suffer.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
ematipico and sarah11918 authored Jan 15, 2024
1 parent e3255cb commit 1c585fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/cyan-grapes-suffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Adds a new `i18n.routing` config option `redirectToDefaultLocale` to disable automatic redirects of the root URL (`/`) to the default locale when `prefixDefaultLocale: true` is set.

In projects where every route, including the default locale, is prefixed with `/[locale]/` path, this property allows you to control whether or not `src/pages/index.astro` should automatically redirect your site visitors from `/` to `/[defaultLocale]`.
In projects where every route, including the default locale, is prefixed with a `/[locale]/` path, this property allows you to control whether or not `src/pages/index.astro` should automatically redirect your site visitors from `/` to `/[defaultLocale]`.

You can now opt out of this automatic redirection by setting `redirectToDefaultLocale: false`:

Expand Down

0 comments on commit 1c585fd

Please sign in to comment.