12
Since the url is controlled by the browser when you change the url the page will reload. Still for what you want to do, on pages where you don't need the stuff after the ? mark type..
window.location = "http://www.mysite.com" //or whatever your site url is
To dynamically do this you can use the below function and then use window.location
function getPathFromUrl(url) {
return url.split("?")[0];
}
Note: When you change the url the page will refresh.