Created
December 16, 2018 14:32
-
-
Save baras/e83f91dbd02d932da52c38df80ce60be to your computer and use it in GitHub Desktop.
Decode a URL in the browser address bar.
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
if (history.pushState) { //IE10+ | |
var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + decodeURIComponent(window.location.search); | |
window.history.pushState({path:newurl},'',newurl); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment