From 3c1a87349c4b43569532a612eb7d22a9cbad6c93 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 26 Jan 2025 14:13:27 +0200 Subject: fix(controllers): Use absolute paths instead of locals --- controllers/archive.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'controllers') diff --git a/controllers/archive.php b/controllers/archive.php index 939b133..a8d8598 100644 --- a/controllers/archive.php +++ b/controllers/archive.php @@ -296,11 +296,11 @@ class DownloadPage { if (count($correct_results) != 0) { // If there are any links that are the same as the urls make the $dom attribute point // to the latest version of that page - $tag->setAttribute($attribute, "../" . $correct_results[0]->WID . "/index.html"); + $tag->setAttribute($attribute, "/archives/" . $correct_results[0]->WID . "/index.html"); } else { // If there are no pages that are like that url point to the landing page of the site // that says that this page was not yet archived - $tag->setAttribute($attribute, "../../archive/index.php?page_url=" . $this->baseToFullUrlForGet($this->page_url, $link)); + $tag->setAttribute($attribute, "/archive/?url=" . $this->baseToFullUrlForGet($this->page_url, $link)); } } } -- cgit v1.2.3