Skip to content

Preserve URL params when switching languages #4772

Open
@alexchexes

Description

@alexchexes

Hi! Can't find any information on whether it's possible to preserve the current URL parameters when switching languages using the built-in Internationalization feature.

Example:
We are on the page
http://localhost:5173/en/demo?debounce=150. The current language is en.
Then we use the nav language switcher to select the language es. By default, the URL is rewritten to
http://localhost:5173/es/demo,
but we would expect to keep the URL parameters, so the desired result would be:
http://localhost:5173/es/demo?debounce=150.

If this isn't supported by default, what would be the recommended approach to "tweak" the language switcher in the nav bar so it behaves as described?

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