code: function getFullUrl(url, base = location.href) {
      const d = document.implementation.createHTMLDocument('');
      const b = d.createElement('base');
      const a = d.createElement('a');
  
      d.head.appendChild(b);
      d.body.appendChild(a);
      b.href = base;
      a.href = url;
  
      return a.href;
  }
docs: Returns fully qualified URL from relative URL and (optional) base URL
  
  @param   {string} url
  @param   {string} [base=location.href]
  @returns {string}