Skip to content

redirectToDefaultLocale doesnt work anymore #16800

@erikdemarco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly impacts performance (priority)needs reproIssue needs a reproductionpkg: astroRelated to the core `astro` package (scope)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions