Fixes the redirection URL.