Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/7642

Vanessa5c37dca6b207
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index cdab3c1d19..ae29f8cf8b 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -307,7 +307,7 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
hPathList.push(escapeHtml(getNotebookName(toNotebook[index])));
} else {
enableIncludeChild = true;
- config.idPath.push(pathPosix().join(toNotebook[index], item));
+ config.idPath.push(pathPosix().join(toNotebook[index], item.replace(".sy", "")));
}
});
if (response.data) {