Corrected redirection functionality