Last active
April 15, 2024 13:50
-
-
Save k-msalehi/6308fd32cfd2c44204abd05aeffa145a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const url = new URL(window.location); | |
url.searchParams.set('someQueryParameter', 'someValue'); | |
window.history.pushState(null, '', url.toString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment