Skip to content
Snippets Groups Projects
Commit bd4f0c92 authored by Marcos Cano's avatar Marcos Cano :speech_balloon: Committed by Greg Boggs
Browse files

Issue #3518678 by marcoscano: Missing breadcrumb items when title resolves to empty string

parent d14791ba
No related branches found
No related tags found
1 merge request!148Use empty() instead of !isset()
Pipeline #476018 passed with warnings
......@@ -580,7 +580,7 @@ class EasyBreadcrumbBuilder implements BreadcrumbBuilderInterface {
$title = $alternativeTitle;
}
}
if (!isset($title)) {
if (empty($title)) {
if ($this->config->get(EasyBreadcrumbConstants::USE_MENU_TITLE_AS_FALLBACK)) {
......@@ -618,7 +618,7 @@ class EasyBreadcrumbBuilder implements BreadcrumbBuilderInterface {
// Fallback to using the raw path component as the title if the
// route is missing a _title or _title_callback attribute.
if (!isset($title)) {
if (empty($title)) {
$title = $this->normalizeText(str_replace(['-', '_'], ' ', end($path_elements)));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment