diff --git a/web/js/download_pecha_kucha.js b/web/js/download_pecha_kucha.js index 26d3e73..0053efd 100644 --- a/web/js/download_pecha_kucha.js +++ b/web/js/download_pecha_kucha.js @@ -51,7 +51,7 @@ app.registerExtension({ const folderName = cleanFilePath.replace(/[^\\/]+$/, ""); const fileNameMatch = cleanFilePath.match(/[^\\/]+$/); const fileName = fileNameMatch ? fileNameMatch[0] : ""; - const viewUrl = `/api/view?subfolder=${encodeURIComponent(folderName)}&filename=${encodeURIComponent(fileName)}&type=output`; + const viewUrl = `api/view?subfolder=${encodeURIComponent(folderName)}&filename=${encodeURIComponent(fileName)}&type=output`; // Open the presentation in a new tab window.open(viewUrl, "_blank");