fixed broken CJK links

This commit is contained in:
Tomoya Matsuura(MacBookPro) 2023-08-21 20:00:50 +09:00
parent a1b527d175
commit 04c04f02ba

View File

@ -63,7 +63,8 @@ export const CrawlLinks: QuartzTransformerPlugin<Partial<Options> | undefined> =
const url = new URL(dest, `https://base.com/${curSlug}`)
const canonicalDest = url.pathname
const [destCanonical, _destAnchor] = splitAnchor(canonicalDest)
const simple = simplifySlug(destCanonical as FullSlug)
const simple = decodeURI(simplifySlug(destCanonical as FullSlug)) as SimpleSlug
outgoing.add(simple)
}