diff --git a/templates/element/layouts/header.php b/templates/element/layouts/header.php
index 399c4db..da3fffe 100644
--- a/templates/element/layouts/header.php
+++ b/templates/element/layouts/header.php
@@ -5,7 +5,7 @@
- = $this->element('layouts/header/header-center'); ?>
+ = $this->element('layouts/header/header-breadcrumb'); ?>
= $this->element('layouts/header/header-right'); ?>
diff --git a/templates/element/layouts/header/header-center.php b/templates/element/layouts/header/header-breadcrumb.php
similarity index 92%
rename from templates/element/layouts/header/header-center.php
rename to templates/element/layouts/header/header-breadcrumb.php
index 4d0f19b..4450941 100644
--- a/templates/element/layouts/header/header-center.php
+++ b/templates/element/layouts/header/header-breadcrumb.php
@@ -1,5 +1,6 @@
request->getParam('controller');
$action = $this->request->getParam('action');
@@ -30,7 +31,7 @@
if (!empty($entry['url_vars'])) {
$entry['url'] = $this->DataFromPath->buildStringFromDataPath($entry['url'], $entity, $entry['url_vars']);
}
- $this->Breadcrumbs->add($entry['label'], $entry['url']);
+ $this->Breadcrumbs->add($entry['label'], Router::url($entry['url']));
}
$lastCrumb = $breadcrumb[count($breadcrumb)-1];
@@ -46,7 +47,7 @@
}
$breadcrumbLinks .= sprintf('
%s',
$active ? 'secondary' : $navbarVariant,
- $linkEntry['url'],
+ Router::url($linkEntry['url']),
$linkEntry['label']
);
}
@@ -56,7 +57,7 @@
if (!empty($actionEntry['url_vars'])) {
$actionEntry['url'] = $this->DataFromPath->buildStringFromDataPath($actionEntry['url'], $entity, $actionEntry['url_vars']);
}
- $breadcrumbAction .= sprintf('
%s', $actionEntry['url'], $actionEntry['label']);
+ $breadcrumbAction .= sprintf('
%s', Router::url($actionEntry['url']), $actionEntry['label']);
}
}
}