mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
fix(export/share): some links not working
This commit is contained in:
@@ -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)}/`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user