var refresh = window.location.protocol + "//" + window.location.host + window.location.pathname + '?arg=1';
window.history.pushState({ path: refresh }, '', refresh);
window.history.pushState("object or string", "Title", "new url");
window.history.replaceState(null, null, "?arg=123");