Adds a trailing slash to the given URL string.

  • Parameters

    • Optionalurl: string

      The URL string to modify.

    Returns string

    A new URL string with the trailing slash added.