Skip to content

Instantly share code, notes, and snippets.

@amilabandara
Created March 26, 2021 17:13
Show Gist options
  • Save amilabandara/b67af305f3f3223d696a0a451e19c976 to your computer and use it in GitHub Desktop.
Save amilabandara/b67af305f3f3223d696a0a451e19c976 to your computer and use it in GitHub Desktop.
This code remove the hash (http://url#hash) value from url
history.pushState("", document.title, window.location.pathname + window.location.search);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment