Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

router.replace() with a string location with query and hash are not taken into account #668

Closed
posva opened this issue Dec 21, 2020 · 0 comments
Labels
bug Something isn't working has workaround A workaround has been found to deal with the issue

Comments

@posva
Copy link
Member

posva commented Dec 21, 2020

Calling router.replace('/search?q=hi') doesn't take into account the query and hash as it would with router.push().

A workaround is to call router.push({ replace: true })

@posva posva added bug Something isn't working has workaround A workaround has been found to deal with the issue labels Dec 21, 2020
@posva posva closed this as completed in 6a8ccb6 Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has workaround A workaround has been found to deal with the issue
Projects
None yet
Development

No branches or pull requests

1 participant