Skip to content

Commit

Permalink
fix: use proper full base for links.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Aug 23, 2023
1 parent b99eb7e commit eed4472
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

<p align="center">
Expand Down
2 changes: 1 addition & 1 deletion 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, `resolve://${curSlug}`)
const url = new URL(dest, `https://base.com/${curSlug}`)
const canonicalDest = url.pathname
const [destCanonical, _destAnchor] = splitAnchor(canonicalDest)

Expand Down

0 comments on commit eed4472

Please sign in to comment.