Skip to content

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

:bug: The assets do not display correctly in PDF export window and file https://github.com/siyuan-note/siyuan/issues/8016 Asset files no longer use HTTP server when exporting PDF https://github.com/siyuan-note/siyuan/issues/7965

Liang Dingf027d27f823e
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts
index 0b6190dbe3..5af37c1fb6 100644
--- a/app/src/protyle/export/index.ts
+++ b/app/src/protyle/export/index.ts
@@ -600,7 +600,6 @@ const onExport = (data: IWebSocketData, filePath: string, type: string, removeAs
const html = `<!DOCTYPE html>
<html lang="${window.siyuan.config.appearance.lang}" data-theme-mode="${getThemeMode()}" data-light-theme="${window.siyuan.config.appearance.themeLight}" data-dark-theme="${window.siyuan.config.appearance.themeDark}">
<head>
- <base href="${data.data.url}">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>