From da156bc5f8735542bb5e351633b133339e8713e2 Mon Sep 17 00:00:00 2001 From: Georgi Nikolov Date: Sun, 19 Jan 2025 18:39:02 +0000 Subject: Fixed the links in the html --- controllers/archive_page.php | 3 +-- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3