From ab46b0c0c0be0d10c8e457f5ae696bdcc71db2a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Fri, 12 Jan 2024 15:27:38 +0100 Subject: [PATCH] fix links --- templates/navpages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/navpages.php b/templates/navpages.php index 81937cd..c052f6b 100644 --- a/templates/navpages.php +++ b/templates/navpages.php @@ -12,7 +12,7 @@ foreach($site_dirs as $site_dir){ $pages_dir = array_diff(scandir("$static_page_dir$site_dir"), array('.', '..')); $navsite = $navsite_template; - $site_location = "$site_dir.$domain.$tld/$default_page"; + $site_location = "$protocol$site_dir.$domain.$tld/$default_page"; $site_class = "class=\"navsite_link\""; $site_name = str_replace("_", " ", $site_dir); $navsite = str_replace("__CLASS__", $site_class, $navsite); @@ -32,7 +32,7 @@ foreach($site_dirs as $site_dir){ $page_class = "class=\"navpage_link active\""; } - $page_location = "$site_dir.$domain.$tld/$page_dir"; + $page_location = "$protocol$site_dir.$domain.$tld/$page_dir"; $page_name = str_replace("_", " ", $page_dir); $page_name = explode(".", $page_name)[0];