From dd9e30a1770d73d3724b4d4defa93d733979054b Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 15 Apr 2024 14:25:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=E5=A4=9A=E8=AF=AD=E8=A8=80=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/db/getSiteData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/getSiteData.js b/lib/db/getSiteData.js index 74b7ad3c..55c76a92 100755 --- a/lib/db/getSiteData.js +++ b/lib/db/getSiteData.js @@ -201,7 +201,7 @@ function getCustomMenu({ collectionData, NOTION_CONFIG }) { e.to = e.slug } else { e.target = '_self' - if (e?.slug?.indexOf('/') !== 0) { + if (e?.slug?.indexOf('http') !== 0 && e?.slug?.indexOf('/') !== 0) { e.to = '/' + e.slug } }