window.history.pushState('', 'New Page Title', '/new-url.php');
window.history.replaceState({}, '','/dashboard');
history.pushState({}, null, newUrl);