Function urlToRelative

  • Converts absolute URL to relative

    Parameters

    • url: string

    Returns string

    Example

    urlToRelative('https://domain.com/index.html')
    // /index.html