mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-02 06:58:13 +00:00
fix: use proper full base for links.ts
This commit is contained in:
parent
b99eb7ebce
commit
eed4472aee
2 changed files with 1 additions and 2 deletions
quartz/plugins/transformers
|
@ -63,7 +63,7 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | 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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue