Skip to content

redirectToDefaultLocale doesnt work anymore #16800

Description

@erikdemarco

Astro Info

Astro                    v6.3.5
Vite                     v7.3.2
Node                     v24.14.0
System                   Linux (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/alpinejs (v0.5.0)

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

I recently upgrade from 6.1.3 to 6.3.5 now it doesnt redirect to default locale even when i enabled it

routing: {
    prefixDefaultLocale: true,
    redirectToDefaultLocale: true,
}

What's the expected result?

it should redirect / to /{defaultLocale}

Link to Minimal Reproducible Example

https://stackblitz.com

Participation

  • I am willing to submit a pull request for this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly impacts performance (priority)pkg: astroRelated to the core `astro` package (scope)triage: needs reproductionIssue needs a reproduction

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions