Add URL generation to the router.