Redirect to custom thank you page hangs