Javascript modify URL without reload code example
Example 1: Javascript modify URL without reload
window.history.pushState('', 'New Page Title', '/new-url.php');
Example 2: java script change url without reload
window.history.replaceState({}, '','/dashboard');