Added method to routing: generateUrl