Colibrio Reader Framework API - Cloud license
    Preparing search index...
    • Get the relative path to url from baseUrl, only if url is a subpath to baseUrl.

      Example:

      const url = new URL('http://a.com/basePath/images/cover.jpg');
      const baseUrl = new URL('http://a.com/basePath/');
      const subpath = URLUtils.getSubpath(url, baseUrl);

      // subpath is: 'images/cover.jpg'

      Parameters

      • url: URL
      • baseUrl: URL

      Returns string