joinURL | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function joinURL

    • Joins a path to a URL, eliminating any double slash (similar to NodeJS path.join)

      Parameters

      • baseurl: string

        URL to join to

      • path: string

        Path to join. May not contain '.' or '..' segments in the path

      Returns string

      Joined URL, with a single slash between both parts