From f3b95fe641190f7d5383bf21eda7be3d679bb8ee Mon Sep 17 00:00:00 2001
From: Peder Bergebakken Sundt <pbsds@hotmail.com>
Date: Mon, 19 Feb 2018 15:48:51 +0100
Subject: [PATCH] Fix bug with webmail link in navbar not working

the webmail link in the  navbar didn't work properly on other pages than the frontpage, due to prepending a "../" to the external link
---
 inc/navbar.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/navbar.php b/inc/navbar.php
index b1a1f1e..129f65d 100644
--- a/inc/navbar.php
+++ b/inc/navbar.php
@@ -12,7 +12,7 @@ function navbar($depth, $active = NULL) {
 	];
 	foreach($menuItems as $caption => $link) {
 		$isActive = $active === $link;
-		if ($caption !== 'webmail') {
+		if ($caption !== 'Webmail') {
 			$link = rtrim(str_repeat('../', $depth) . $link, '/') . '/';
 		}
 		if ($isActive) $link = '#';