fixed broken CJK links (#390)
This commit is contained in:
		
							parent
							
								
									c60b3d5e34
								
							
						
					
					
						commit
						bb677840fc
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -63,7 +63,8 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
 | 
				
			||||||
                  const url = new URL(dest, `https://base.com/${curSlug}`)
 | 
					                  const url = new URL(dest, `https://base.com/${curSlug}`)
 | 
				
			||||||
                  const canonicalDest = url.pathname
 | 
					                  const canonicalDest = url.pathname
 | 
				
			||||||
                  const [destCanonical, _destAnchor] = splitAnchor(canonicalDest)
 | 
					                  const [destCanonical, _destAnchor] = splitAnchor(canonicalDest)
 | 
				
			||||||
                  const simple = simplifySlug(destCanonical as FullSlug)
 | 
					                  const simple = decodeURI(simplifySlug(destCanonical as FullSlug)) as SimpleSlug
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                  outgoing.add(simple)
 | 
					                  outgoing.add(simple)
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue