fix: use proper full base for links.ts
This commit is contained in:
		
							parent
							
								
									b99eb7ebce
								
							
						
					
					
						commit
						eed4472aee
					
				| @ -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"> | ||||
|  | ||||
| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user