Jacky Zhao
2023-08-21 d0f67d993507219cfa0824db8a3e59286f0ebf09
quartz/plugins/transformers/links.ts
@@ -60,7 +60,8 @@
                    dest,
                    transformOptions,
                  )
                  const canonicalDest = path.posix.normalize(joinSegments(curSlug, dest))
                  const url = new URL(dest, `https://base.com/${curSlug}`)
                  const canonicalDest = url.pathname
                  const [destCanonical, _destAnchor] = splitAnchor(canonicalDest)
                  const simple = simplifySlug(destCanonical as FullSlug)
                  outgoing.add(simple)