docs: function makePath(to, params, query) {
          var path;
          if (PathUtils.isAbsolute(to)) {
            path = to;
          } else {
            var route = to instanceof Route ? to : Router.namedRoutes[to];
  
            invariant(route instanceof Route, 'Cannot find a route named "%s"', to);
  
            path = route.path;
          }
  
          return PathUtils.withQuery(PathUtils.injectParams(path, params), query);
        }