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];