From 8dfdab9d733029a9ee0722ab51984d32b6bd52d8 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Thu, 17 Sep 2020 13:29:52 +0000 Subject: [PATCH] Respect the base URL in direct download link (#103) --- public/js/title.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/title.js b/public/js/title.js index a2eeaa8..0942cd1 100644 --- a/public/js/title.js +++ b/public/js/title.js @@ -55,7 +55,7 @@ function showModal(encodedPath, pages, percentage, encodedeTitle, encodedEntryTi $('#modal-edit-btn').attr('onclick', `edit("${entryID}")`); - $('#modal-download-btn').attr('href', `/opds/download/${titleID}/${entryID}`); + $('#modal-download-btn').attr('href', `${base_url}opds/download/${titleID}/${entryID}`); UIkit.modal($('#modal')).show(); }