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) {
|
foreach($menuItems as $caption => $link) {
|
||||||
$isActive = $active === $link;
|
$isActive = $active === $link;
|
||||||
if ($caption !== 'webmail') {
|
if ($caption !== 'Webmail') {
|
||||||
$link = rtrim(str_repeat('../', $depth) . $link, '/') . '/';
|
$link = rtrim(str_repeat('../', $depth) . $link, '/') . '/';
|
||||||
}
|
}
|
||||||
if ($isActive) $link = '#';
|
if ($isActive) $link = '#';
|
||||||
|
|
Loading…
Reference in New Issue