Prevent double slashes at the end of URL
This commit is contained in:
parent
6364325198
commit
53aec5edf5
|
@ -11,7 +11,7 @@ function navbar($depth, $active = NULL) {
|
||||||
];
|
];
|
||||||
foreach($menuItems as $caption => $link) {
|
foreach($menuItems as $caption => $link) {
|
||||||
$result .= "\t\t<li" . ($active === $link ? ' class="active"' : '') . '>'
|
$result .= "\t\t<li" . ($active === $link ? ' class="active"' : '') . '>'
|
||||||
. '<a href="' . str_repeat('../', $depth) . $link . '/">'
|
. '<a href="' . rtrim(str_repeat('../', $depth) . $link, '/') . '/">'
|
||||||
. $caption
|
. $caption
|
||||||
. "</a></li>\n"
|
. "</a></li>\n"
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue