zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.41k stars 1.93k forks source link

canvas note exported html can't be view in browser #4866

Open ckholy2 opened 1 month ago

ckholy2 commented 1 month ago

note with draw.zip

Trilium Version

0.63.7

What operating system are you using?

Windows

What is your setup?

Local (no sync)

Operating System Version

Windows 10 22H2

Description

When I exported a "canvas note" to html, then open it in Chrome browser, the svg file can't be shown. It doesn't happen if I "share the note" and view it in a browser.

It seems the export function missing important information in the html page. I tried the same thing in joplin, its export html file can be imported to Trilium without problem

2024-9-30_23-52-7

Error logs

No response

ckholy2 commented 1 month ago

ok, I finally found that it's due to "canvas note" can't be viewed in browser. It will works if we create a link directly point to the svg attachment or "convert the svg to a note". However, I found another strange bug. If the note title is 13-15 digits long, the svg filename will be truncated and can't be viewed.

123456789012.zip 1234567890123.zip