I have a side with a big number of parameters, like www.hello.com/kaleidoskop.html#look/2
If you reload this side you will still have the parameters.
I would like to delete them and start after refresh with www.hello.com/kaleidoskop.html
For this i made the following:
function updateHash (t, clean) {
if (clean) {
var r = window.location.href.replace(/(javascript:|#).*$/, '');
window.location.replace(r + '#' + t)
} else window.location.hash = '#' + t
}
But here I still have the #.
If I use window.location.replace(r) or window.location.hash = r
it loops.
Is there any other solution?