Jacky Zhao
2024-02-24 b88d3d292beaa0cd03e72a4fc1b84c7bc1d39e9e
quartz/plugins/transformers/links.ts
@@ -108,7 +108,7 @@
                  // url.resolve is considered legacy
                  // WHATWG equivalent https://nodejs.dev/en/api/v18/url/#urlresolvefrom-to
                  const url = new URL(dest, joinSegments(`https://base.com/`, curSlug))
                  const url = new URL(dest, "https://base.com/" + stripSlashes(curSlug, true))
                  const canonicalDest = url.pathname
                  let [destCanonical, _destAnchor] = splitAnchor(canonicalDest)
                  if (destCanonical.endsWith("/")) {