@maschinenlesbar.org/openka-cli
    Preparing search index...

    Function documentUrl

    • The document URL of a row's link. For some Sachsen-Anhalt papers the portal glues two URLs into one href — …/d7036dak.pdfhttps://…/d7036dak.doc (issue #20), both halves of which answer 200 — and the string was fetched as one URL, answered 404, and the record was stored without its document. The parts are split at each http(s)://; the first PDF is taken, else the first part, and the rest are named in a warning rather than dropped without a word.

      Parameters

      • href: string | undefined
      • warnings: string[]
      • reference: string

      Returns string | undefined