When updating the rootUrl for the second time (viz. after a redirect) keep the original path in place