var newURL = window.location.protocol + "://" + window.location.host + "/" + window.location.pathname;