Fix in redirect url to include the content-type