Смена URL без перезагрузки страницы

history.pushState(null, null, '/anypath');