Created
September 6, 2019 18:12
-
-
Save Farmatique/eda931a2c2cb05b2cc3814b2c0de649a to your computer and use it in GitHub Desktop.
REmove query string in url (remove after ?q)
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
$(document).ready(function(){ | |
var uri = window.location.toString(); | |
if (uri.indexOf("?") > 0) { | |
var clean_uri = uri.substring(0, uri.indexOf("?")); | |
window.history.replaceState({}, document.title, clean_uri); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment