Change redirect function name because it conflicts with platal