Skip to content

Commit 87c0559

Browse files
committed
fix(export/share): some links not working
1 parent e3e5109 commit 87c0559

File tree

1 file changed

+4
-0
lines changed
  • apps/server/src/services/export

1 file changed

+4
-0
lines changed

apps/server/src/services/export/zip.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ async function exportToZip(taskContext: TaskContext<"export">, branch: BBranch,
253253

254254
for (let i = 0; i < targetPath.length - 1; i++) {
255255
const meta = noteIdToMeta[targetPath[i]];
256+
if (meta === rootMeta && format === "share") {
257+
continue;
258+
}
259+
256260
if (meta.dirFileName) {
257261
url += `${encodeURIComponent(meta.dirFileName)}/`;
258262
}

0 commit comments

Comments
 (0)