Website Summary Files Commits Branches @commit @diff @stats
path: root / controllers / archive.php
diff options
context:
space:
mode:
Commit3c1a87349c4b43569532a612eb7d22a9cbad6c93 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-26 14:13:27 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-01-26 14:13:27 +0200
Files7364ecb791cf024d3dca48fc90599a7cfd752a45 /controllers/archive.php
nowayforward_human-3c1a87349c4b43569532a612eb7d22a9cbad6c93.tar
nowayforward_human-3c1a87349c4b43569532a612eb7d22a9cbad6c93.tar.gz
nowayforward_human-3c1a87349c4b43569532a612eb7d22a9cbad6c93.zip
Parentbfa238c056f31f36c00faad1c5995cbb8af3bd26 (diff)
fix(controllers): Use absolute paths instead of locals
1 files changed, 2 insertions, 2 deletions
-rw-r--r--controllers/archive.php4
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));
}
}
}