var currentUrl = window.location.href;
//its actually window.location.href = "/App/Home" //or window.location.href = "https://www.google.com/"
console.log ('url actual: '+window.location.href); console.log ('url actual: '+location.href);