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
This commit is contained in:
		@@ -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 = '#';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user