Skip to content

Can support replace function into useRouter()? #4787

@Tzyito

Description

@Tzyito

Is your feature request related to a problem? Please describe.

When I need to determine whether to enter different multilanguages based on the user ua, using use Router().go in the setup stage will result in adding a browser record. This has a problem when opening the webview

https://stackblitz.com/edit/vite-4ax23dxs?file=docs%2F.vitepress%2Ftheme%2Findex.ts

Describe the solution you'd like

support useRouter().replace to handle the first route's record

Describe alternatives you've considered

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    clientcontribution welcomeThe team would welcome a contribution from the community for this issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions