Reset path of base url incase of redirects