From 36aeef90913d2e8a35afb2bd6d82500133647ae1 Mon Sep 17 00:00:00 2001 From: Roland Date: Sun, 20 Aug 2023 14:48:42 -0600 Subject: [PATCH] Using absolute path for download. --- app/src/components/FilePreview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/components/FilePreview.js b/app/src/components/FilePreview.js index c1b0c188..bc8fe434 100644 --- a/app/src/components/FilePreview.js +++ b/app/src/components/FilePreview.js @@ -27,9 +27,9 @@ function getDownloadPathURL(previewFile) { function getEpubViewerURL(previewFile) { if (previewFile['primary_path']) { - return `/epub/epub.html?url=download/${encodeMediaPath(previewFile['primary_path'])}`; + return `/epub/epub.html?url=/download/${encodeMediaPath(previewFile['primary_path'])}`; } else { - return `/epub/epub.html?url=download/${encodeMediaPath(previewFile['path'])}`; + return `/epub/epub.html?url=/download/${encodeMediaPath(previewFile['path'])}`; } }