Jacky Zhao
2023-08-23 eed4472aeecdcb0f2b233df69884f03bd45fc293
fix: use proper full base for links.ts
2 files modified
3 ■■■■ changed files
README.md 1 ●●●● patch | view | raw | blame | history
quartz/plugins/transformers/links.ts 2 ●●● patch | view | raw | blame | history
README.md
@@ -11,7 +11,6 @@
[Join the Discord Community](https://discord.gg/cRFFHYye7t)
## Sponsors
<p align="center">
quartz/plugins/transformers/links.ts
@@ -63,7 +63,7 @@
                  // url.resolve is considered legacy
                  // WHATWG equivalent https://nodejs.dev/en/api/v18/url/#urlresolvefrom-to
                  const url = new URL(dest, `resolve://${curSlug}`)
                  const url = new URL(dest, `https://base.com/${curSlug}`)
                  const canonicalDest = url.pathname
                  const [destCanonical, _destAnchor] = splitAnchor(canonicalDest)