Changed redirect url from &str to Url.