Skip to content

Locale prefix should be removed from Link href with 'as-needed' middleware #647

Closed
@gkielwasser

Description

@gkielwasser

Description

Go on a page with a local that is not the default locale.
The Link href is not respecting setting 'as-needed' from middleware and therefore is displaying the local prefix from the default local.

Mandatory reproduction URL (CodeSandbox or GitHub repository)

sandbox

Reproduction description

Steps to reproduce:

  1. Click on "de" link
  2. check the link for "en" link
  3. See displayed href is '/en/about' instead of '/about'

Expected behaviour

Whatever the current local is, the Link href should not display the local prefix with 'as-needed' middleware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingunconfirmedNeeds triage.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions