Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/11993

Vanessad9a4e4397922
diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts
index eb633fafe5..a0f5c89c46 100644
--- a/app/src/editor/util.ts
+++ b/app/src/editor/util.ts
@@ -196,7 +196,7 @@ export const openFile = async (options: IOpenFileOptions) => {
/// #if !BROWSER
// https://github.com/siyuan-note/siyuan/issues/7491
- if (!options.position) {
+ if (!options.position || (options.position === "right" && options.assetPath)) {
let hasMatch = false;
const optionsClone: IObject = {};
Object.keys(options).forEach((key: keyof IOpenFileOptions) => {