Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve breadcrumb escape text Fix https://github.com/siyuan-note/siyuan/issues/8679

Danielca24c4a9bc36
diff --git a/kernel/model/blockinfo.go b/kernel/model/blockinfo.go
index b672f8b81b..40d74a3237 100644
--- a/kernel/model/blockinfo.go
+++ b/kernel/model/blockinfo.go
@@ -18,7 +18,6 @@ package model
import (
"os"
- "path"
"path/filepath"
"sort"
"strings"
@@ -260,7 +259,6 @@ func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string) (ret []*BlockPa
headingLevel := 16
maxNameLen := 1024
- boxName := box.Name
var hPath string
baseBlock := treenode.GetBlockTreeRootByPath(node.Box, node.Path)
if nil != baseBlock {
@@ -278,7 +276,7 @@ func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string) (ret []*BlockPa
name := util.EscapeHTML(parent.IALAttr("name"))
if ast.NodeDocument == parent.Type {
- name = util.EscapeHTML(path.Join(boxName, hPath))
+ name = util.EscapeHTML(box.Name) + util.EscapeHTML(hPath)
} else {
if "" == name {
if ast.NodeListItem == parent.Type {