Set link to anchor for current page, to easily dismiss menu

This commit is contained in:
Yorin Anne De Jong 2018-02-13 17:24:08 +01:00
parent a4b01d1259
commit 528ea62f38
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ function navbar($depth, $active = NULL) {
if ($caption !== 'webmail') {
$link = rtrim(str_repeat('../', $depth) . $link, '/') . '/';
}
if ($isActive) $link = '#';
$result .= "\t\t<li" . ($isActive ? ' class="active"' : '') . '>'
. '<a href="' . $link . '">'
. $caption