Sanitizes a base URL by removing trailing slashes and adding the protocol if missing.

  • Parameters

    • url: string

      The URL to validate.

    Returns string

    The sanitized URL without the protocol.