Skip to content

Commit

Permalink
Jul 1, 2024, 9:33 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
freenandes committed Jul 1, 2024
1 parent f4ebef0 commit cf23174
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions quartz/plugins/transformers/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, `https://base.com/${curSlug}/`)
const url = new URL(dest, `https://base.com/${curSlug}`)
const canonicalDest = url.pathname
const [destCanonical, _destAnchor] = splitAnchor(canonicalDest)

Expand Down Expand Up @@ -100,7 +100,6 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
dest,
transformOptions,
)
const url = new URL(dest, `https://base.com/${curSlug}/`)
node.properties.src = dest
}
}
Expand Down

0 comments on commit cf23174

Please sign in to comment.