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
if window.location.hash is empty, you cant assign to location.href a new value without using a correct function (at least tested in chrome).
window.location.hash
try the window.location.replace:
window.location.replace
if (!window.location.hash) { window.location.replace(window.location.href + "?single") }