Skip to content

Commit ff9789b

Browse files
sirrah23Rokt33r
authored andcommitted
Fix 3060
Right now there are only two export types that are using a special output formatter, pdf and html. Both of these formatters currently populate the `/html/head/base` portion of the associated html document with the name of the target directory for the file that the user is exporting. In order for internal links within the exported document to work correctly, the value of base must also include the filename. This fix removes the call to `path.dirname`, which gets rid of the necessary filename.
1 parent f09297f commit ff9789b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser/main/lib/dataApi/exportNote.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function exportNote (nodeKey, storageKey, noteContent, targetPath, outputFormatt
4343
)
4444

4545
if (outputFormatter) {
46-
exportedData = outputFormatter(exportedData, exportTasks, path.dirname(targetPath))
46+
exportedData = outputFormatter(exportedData, exportTasks, targetPath)
4747
} else {
4848
exportedData = Promise.resolve(exportedData)
4949
}

0 commit comments

Comments
 (0)