Respect the base URL in direct download link (#103)

This commit is contained in:
Alex Ling 2020-09-17 13:29:52 +00:00
parent 3a95270dfb
commit 8dfdab9d73

View File

@ -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();
}