diff --git a/kernel/model/file.go b/kernel/model/file.go index 2962d5e03..7d30f9179 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -516,8 +516,12 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s luteEngine := NewLute() node := treenode.GetNodeInTree(tree, id) if nil == node { - err = ErrBlockNotFound - return + // Unable to open the doc when the block pointed by the scroll position does not exist https://github.com/siyuan-note/siyuan/issues/9030 + node = treenode.GetNodeInTree(tree, tree.Root.ID) + if nil == node { + err = ErrBlockNotFound + return + } } if isBacklink { // 引用计数浮窗请求,需要按照反链逻辑组装 https://github.com/siyuan-note/siyuan/issues/6853