fixing window.url path