LPS-38290 We need to propagate the redirect parameter in case there is an error