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:
parent
b016d27adb
commit
f3b95fe641
@ -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 = '#';
|
||||
|
Loading…
Reference in New Issue
Block a user