Skip to content

Commit 9d574aa

Browse files
authored
Merge pull request #40 from d3xt3r01/main
Add / for the directories to the header bar too
2 parents 781e781 + 46ffaa4 commit 9d574aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inc/header.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ function show_page_item($name, $page, $nestlevel, $small = false)
142142
$url = $page["script"];
143143
if (str_ends_with($url, "/index.php"))
144144
$url = str_replace('/index.php', '', $url);
145+
if (!str_ends_with($url, ".php") && !empty($url))
146+
$url = $url.'/';
145147
echo "<a href=\"".get_config("base_url").$url."\" style=\"text-decoration: none\">\n";
146148
}
147149
echo "<div class=\"big-page-item d-flex justify-content-between align-items-center $class\" style=\"$style\">$name

0 commit comments

Comments
 (0)