• Parameters

    • url: URL

      The URL to get the base URL from

    Returns string

    • The base URL

    getBaseUrl - Get the base URL from a URL Returns the base URL including protocol, hostname and any non-standard port. The returned URL does not include a trailing slash.