Function normalizeUriPathSlashes

  • Collapses repeated forward slashes in the path part of a URI-like string. Query strings are preserved unchanged.

    Parameters

    • path: string

      URI path (optionally followed by a query string).

    Returns string