Created
January 5, 2021 21:00
-
-
Save davidraedev/c8075fad4f8c66f5e98939f89de4f7e2 to your computer and use it in GitHub Desktop.
reload page with hashtag
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
function reloadPage() { | |
history.replaceState( null, null, " " ); | |
window.location = window.location.href.split( "#" )[0]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment