code: function url(path) {
          if (path) {
              if (_.startsWith(path, "/")) {
                  if (!_urlPrefix) {
                      // lets discover the base url via the base html element
                      _urlPrefix = $('base').attr('href') || "";
                      if (_.endsWith(_urlPrefix, '/')) {
                          _urlPrefix = _urlPrefix.substring(0, _urlPrefix.length - 1);
                      }
                  }
                  if (_urlPrefix) {
                      return _urlPrefix + path;
                  }
              }
          }
          return path;
      }
docs: Prefixes absolute URLs with current window.location.pathname
  
  @param path
  @returns {string}