aboutsummaryrefslogtreecommitdiff
path: root/controllers/archive_page.php
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/archive_page.php')
-rw-r--r--controllers/archive_page.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/controllers/archive_page.php b/controllers/archive_page.php
index 0c05bb2..7c5a704 100644
--- a/controllers/archive_page.php
+++ b/controllers/archive_page.php
@@ -99,8 +99,7 @@ class DownloadPage {
if ($this->is_resource_accessible($sourceUrl)) {
$sourceContent = $this->download_file($sourceUrl);
if ($sourceContent) {
- $link->setAttribute($attribute, $folder_path . '/' . basename($source));
- // NOTE: This might need to be the basename instead of the sourceUrl
+ $link->setAttribute($attribute, './' . basename($source));
$file = fopen($folder_path . '/' . basename($source), "w");
fwrite($file, $sourceContent);
fclose($file);