Add external for ns.router.generateUrl