function resolveUrl(base, url) {
  if (url.includes('://')) {
    return url;
  }
  return new URL(url, base).href;
}
@param {string} base The base URL.
@param {string} url The potentially relative URL.
@return {string} The full URL.