Fixed redirects to use BASE_URL