From 293534fb8bfca991142a796b40225c1b56cc7942 Mon Sep 17 00:00:00 2001 From: Sma11X <540351143@qq.com> Date: Mon, 23 Oct 2023 00:14:37 +0800 Subject: [PATCH] fix: correct links content with query symbol (#2377) --- composables/content-parse.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composables/content-parse.ts b/composables/content-parse.ts index bdbefc34..d345940a 100644 --- a/composables/content-parse.ts +++ b/composables/content-parse.ts @@ -331,6 +331,8 @@ function filterHref() { if (href.startsWith('/') || href.startsWith('.')) return href + href = href.replace(/&/g, '&') + let url try { url = new URL(href)