EZP-23516: fix generation for ez_legacy routes using url twig function