]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Add / for the directories to the header bar too
authorAdrian Sandu <redacted>
Mon, 17 Jul 2023 19:44:06 +0000 (22:44 +0300)
committerAdrian Sandu <redacted>
Mon, 17 Jul 2023 19:44:06 +0000 (22:44 +0300)
inc/header.php

index 256687bd8ddc09916a6603a5a30a72f19caf51ec..322bce38d06877b849daf14431fcc143a63acc11 100644 (file)
@@ -142,6 +142,8 @@ function show_page_item($name, $page, $nestlevel, $small = false)
                $url = $page["script"];
                if (str_ends_with($url, "/index.php"))
                        $url = str_replace('/index.php', '', $url);
+                if (!str_ends_with($url, ".php") && !empty($url))
+                        $url = $url.'/';
                echo "<a href=\"".get_config("base_url").$url."\" style=\"text-decoration: none\">\n";
        }
        echo "<div class=\"big-page-item d-flex justify-content-between align-items-center $class\" style=\"$style\">$name