Fix breadcrumb support of multiple folders with the same name. Fixes #54

This commit is contained in:
Stéphane Goetz
2018-06-05 23:02:01 +02:00
parent 049e5cd498
commit 0570fb7971
2 changed files with 4 additions and 4 deletions

View File

@ -99,8 +99,8 @@ class Template
$title = '';
$breadcrumb_trail = $page['breadcrumb_trail'];
$separator = $this->getSeparator($page['breadcrumb_separator']);
foreach ($breadcrumb_trail as $key => $value) {
$title .= '<a href="' . $base_page . $value . '">' . $key . '</a>' . $separator;
foreach ($breadcrumb_trail as $value) {
$title .= '<a href="' . $base_page . $value['url'] . '">' . $value['title'] . '</a>' . $separator;
}
if ($page['filename'] === 'index' || $page['filename'] === '_index') {
if ($page['title'] != '') {