Update routing generateUrl method