mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-30 15:10:11 +00:00
feat(更换short_id实现方式): 避免因为缩短导致的潜在bug
(cherry picked from commit 6d73a4388c1613dc0a719d68c8b4b3432fefd314)
This commit is contained in:
@@ -27,8 +27,7 @@ export const convertInnerUrl = allPages => {
|
||||
const slug = getLastPartOfUrl(anchorTag.href)
|
||||
if (checkStrIsNotionId(slug)) {
|
||||
const slugPage = allPages?.find(page => {
|
||||
const find = idToUuid(slug).indexOf(page.short_id) === 0
|
||||
return find
|
||||
return idToUuid(slug).indexOf(page.short_id) === 14
|
||||
})
|
||||
if (slugPage) {
|
||||
anchorTag.href = slugPage?.href
|
||||
@@ -51,4 +50,4 @@ export const convertInnerUrl = allPages => {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user