how to remove part of a url out in javascript without reloading the page code example
Example: java script change url without reload
window.history.replaceState({}, '','/dashboard');
window.history.replaceState({}, '','/dashboard');