Fix base url redirection