I am refreshing my page using jQuery:
location.reload();
This is working great but I want to refresh the same page by passing a parameter t
I would use REGEX with .replace like this:
.replace
window.location.href = window.location.href.replace( /[\?#].*|$/, "?single" );