var refresh = window.location.protocol + "//" + window.location.host + window.location.pathname + '?arg=1'; window.history.pushState({ path: refresh }, '', refresh);