Simplify the redirect function