code: function getBaseUrl(url) {
    var base = typeof(window) !== "undefined" ? window.location.href : "";
    return ResolverProvider.Url.parser.resolve(base, url || "");
  }
docs: /*
  This will adjust the baseUrl in the settings so that requests get the absolute
  url so that browsers can better handle `# sourceURL`.  In chrome for example,
  the files are added to the developer tools' source tree, which let's you put
  break points directly from the developer tools.