Add `generateUrl` shortcut for controllers.