mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
fix多语言菜单跳转问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user