code: function (uri, noHost) {
          uri = new URI(uri, { base_uri: this });
  
          return uri.getURI(noHost && this.isSameOrigin(uri));
        }
docs: Converts the specified URI into a absolute URI based on the current URI instance location.
  
  @method toAbsolute
  @param {String} uri URI to convert into a relative path/URI.
  @param {Boolean} noHost No host and protocol prefix.
  @return {String} Absolute URI from the point specified in the current URI instance.
  @example
  // Converts an relative URL to an absolute URL url will be http://www.site.com/dir/somedir/somefile.htm
  var url = new tinymce.util.URI('http://www.site.com/dir/').toAbsolute('somedir/somefile.htm');