diff options
| author | Syndamia <kamen@syndamia.com> | 2025-01-26 14:13:27 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-01-26 14:13:27 +0200 |
| commit | 3c1a87349c4b43569532a612eb7d22a9cbad6c93 (patch) | |
| tree | 7364ecb791cf024d3dca48fc90599a7cfd752a45 /controllers | |
| parent | bfa238c056f31f36c00faad1c5995cbb8af3bd26 (diff) | |
| download | nowayforward_human-3c1a87349c4b43569532a612eb7d22a9cbad6c93.tar nowayforward_human-3c1a87349c4b43569532a612eb7d22a9cbad6c93.tar.gz nowayforward_human-3c1a87349c4b43569532a612eb7d22a9cbad6c93.zip | |
fix(controllers): Use absolute paths instead of locals
Diffstat (limited to 'controllers')
| -rw-r--r-- | controllers/archive.php | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } } } |
