JavaScript Change URL sem recarregar
window.history.pushState('', 'New Page Title', '/new-url.php');
Grepper
window.history.pushState('', 'New Page Title', '/new-url.php');
window.history.replaceState({}, '','/dashboard');
history.pushState({}, null, newUrl);
history.pushState(state, title, url)
function processAjaxData(response, urlPath){
document.getElementById("content").innerHTML = response.html;
document.title = response.pageTitle;
window.history.pushState({"html":response.html,"pageTitle":response.pageTitle},"", urlPath);
}