Separate generatePath and generateUrl twig functions