redirect and twig implementation