Make redir accessible to tests
Made redirecting pass