Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 8dfdab9

Browse files
committed
Respect the base URL in direct download link (#103)
1 parent 3a95270 commit 8dfdab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/title.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function showModal(encodedPath, pages, percentage, encodedeTitle, encodedEntryTi
5555

5656
$('#modal-edit-btn').attr('onclick', `edit("${entryID}")`);
5757

58-
$('#modal-download-btn').attr('href', `/opds/download/${titleID}/${entryID}`);
58+
$('#modal-download-btn').attr('href', `${base_url}opds/download/${titleID}/${entryID}`);
5959

6060
UIkit.modal($('#modal')).show();
6161
}

0 commit comments

Comments
 (0)