I'm using this code
$("#reset_filter").on("click", function(e) {
window.location.hash = "";
window.location.reload();
});
for reset the URL on the page but because of (window.location.hash) on the end of the URL I always get #
. Is it possible somehow to remove the hash
from the URL? I already have tried with
window.location.href.substr(0, window.location.href.indexOf('#'))
and
window.location.href.split('#')[0]
but it was not working, any proposition and help please.