Skip to content

Build your personal knowledge base with Trilium Notes

fix(share): hard-coded root-level paths

Elian Doran3a0bab217d12
diff --git a/apps/server/src/share/content_renderer.ts b/apps/server/src/share/content_renderer.ts
index 035f714b61..41e3fd7177 100644
--- a/apps/server/src/share/content_renderer.ts
+++ b/apps/server/src/share/content_renderer.ts
@@ -149,8 +149,8 @@ export function renderNoteContent(note: SNote) {
isStatic: false,
faviconUrl: note.hasRelation("shareFavicon") ? `api/notes/${note.getRelationValue("shareFavicon")}/download` : `../favicon.ico`,
iconPackCss: iconPacks.map(p => generateCss(p, p.builtin
- ? `/share/assets/fonts/${p.fontAttachmentId}.${MIME_TO_EXTENSION_MAPPINGS[p.fontMime]}`
- : `/share/api/attachments/${p.fontAttachmentId}/download`
+ ? `assets/fonts/${p.fontAttachmentId}.${MIME_TO_EXTENSION_MAPPINGS[p.fontMime]}`
+ : `api/attachments/${p.fontAttachmentId}/download`
))
.filter(Boolean)
.join("\n\n"),