Jonathan Fung
2025-02-25 9a0d919a3b1730adb1f02e4a26eaad38bf71f408
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
}