fix(export/share): some links not working

This commit is contained in:
Elian Doran
2025-11-03 18:19:34 +02:00
parent e3e5109270
commit 87c055913f

View File

@@ -253,6 +253,10 @@ async function exportToZip(taskContext: TaskContext<"export">, branch: BBranch,
for (let i = 0; i < targetPath.length - 1; i++) { for (let i = 0; i < targetPath.length - 1; i++) {
const meta = noteIdToMeta[targetPath[i]]; const meta = noteIdToMeta[targetPath[i]];
if (meta === rootMeta && format === "share") {
continue;
}
if (meta.dirFileName) { if (meta.dirFileName) {
url += `${encodeURIComponent(meta.dirFileName)}/`; url += `${encodeURIComponent(meta.dirFileName)}/`;
} }