sanitizeUrl = (url) => {
  let sanitizedUrl = collapseDuplicateSlashes(url.replace(/\\/g, '//'));
  return sanitizedUrl;
}
Replaces all `\\` (backslashes) with `//` (forward slashes) and collapses multiple slashes into one.

@param {string} url - The URL to sanitize.
@returns {string} The sanitized URL.