From eed4472aeecdcb0f2b233df69884f03bd45fc293 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Wed, 23 Aug 2023 12:18:50 -0700 Subject: [PATCH] fix: use proper full base for links.ts --- README.md | 1 - quartz/plugins/transformers/links.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3e40e819d..4b4731c9b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,6 @@ Quartz v4 features a from-the-ground rewrite focusing on end-user extensibility [Join the Discord Community](https://discord.gg/cRFFHYye7t) - ## Sponsors

diff --git a/quartz/plugins/transformers/links.ts b/quartz/plugins/transformers/links.ts index f8da36c4d..26c4a3228 100644 --- a/quartz/plugins/transformers/links.ts +++ b/quartz/plugins/transformers/links.ts @@ -63,7 +63,7 @@ export const CrawlLinks: QuartzTransformerPlugin | undefined> = // 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)