updates routeTree to build URLs with location api