From 50f62fd8b3d6753ed8f439060ccc0fe37870bb81 Mon Sep 17 00:00:00 2001 From: Booteille Date: Tue, 26 Nov 2024 23:27:52 +0100 Subject: [PATCH] Fix download link --- themes/default/public/js/lufi-files.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/themes/default/public/js/lufi-files.js b/themes/default/public/js/lufi-files.js index 075e326..cd1f681 100644 --- a/themes/default/public/js/lufi-files.js +++ b/themes/default/public/js/lufi-files.js @@ -170,10 +170,8 @@ const populateFilesTable = () => { itemDOM.setAttribute("data-serverKey", file.short); itemDOM.setAttribute("data-actionKey", file.token); - const downloadLink = `${actionURL}d/${file.short}/${file.token}`; - itemDOM.querySelector(".column.name").innerText = file.name; - itemDOM.querySelector(".column.download a").href = downloadLink; + itemDOM.querySelector(".column.download a").href = file.url; itemDOM .querySelector(".column.delete-at-first-view .icon") .classList.add(file.del_at_first_view ? "check" : "close");