getNewURL = (req, subdomain, base_url) => {
  var ports = "";
  const host = req.get("host");
  if (typeof host === "string") {
    const hosts = host.split(":");
    if (hosts.length > 1) ports = `:${hosts[1]}`;
  }
  const hostname = base_url || req.hostname;
  // return newurl
  return `${req.protocol}://${subdomain}.${hostname}${ports}/`;
}
Return URL of new Tenant
@param {object} req - Request
@param {string} subdomain - Tenant Subdomain name string
@param base_url - Base URL
@returns {string}