Skip to content

[Feature Request]: Removing baseLocale from url #512

@jezikk

Description

@jezikk

What problem does the feature solve?

If "url" strategy is set and a user opens the url with baseLocale, the middleware should redirects the user to url without locale. For example:

  1. baseLocale is set to "en"
  2. A user opens url "http://localhost:5173/en"
  3. middleware redirect to "http://localhost:5173" because "en" is a base locale

The same use case should be applied when locale in url doesn't exist.

What does the proposed API look like?

This feature should be enabled by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions