From e03a0d771b3cedac839998b521e9832f5855db7b Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 3 Jun 2023 21:56:18 +0800 Subject: [PATCH] :art: Support for opening file history on the doc tree https://github.com/siyuan-note/siyuan/issues/8448 --- kernel/model/history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/history.go b/kernel/model/history.go index c845b1696..93d59bfdf 100644 --- a/kernel/model/history.go +++ b/kernel/model/history.go @@ -651,7 +651,7 @@ func indexHistoryDir(name string, luteEngine *lute.Lute) { for _, asset := range assets { p := strings.TrimPrefix(asset, util.HistoryDir) p = filepath.ToSlash(p[1:]) - _, id := util.LastID(asset) + _, id := util.LastID(p) if !ast.IsNodeIDPattern(id) { id = "" }