From 528ea62f3839e2228aaaf2d16d5494834eada97c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20A=CC=8Ane?= Date: Tue, 13 Feb 2018 17:24:08 +0100 Subject: [PATCH] Set link to anchor for current page, to easily dismiss menu --- inc/navbar.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/navbar.php b/inc/navbar.php index 26f2997..09d0ec0 100644 --- a/inc/navbar.php +++ b/inc/navbar.php @@ -15,6 +15,7 @@ function navbar($depth, $active = NULL) { if ($caption !== 'webmail') { $link = rtrim(str_repeat('../', $depth) . $link, '/') . '/'; } + if ($isActive) $link = '#'; $result .= "\t\t' . '' . $caption