Mantvydas Deltuva
2025-01-21 01943ff5a0f546003ed4b3677d8a3a3ba6c7814c
quartz/components/scripts/util.ts
@@ -41,5 +41,5 @@
  // to allow the caller to read it if it's was not a redirect
  const text = await res.clone().text()
  const [_, redirect] = text.match(canonicalRegex) ?? []
  return redirect ? fetch(redirect) : res
  return redirect ? fetch(`${new URL(redirect, url)}`) : res
}