From fd53bfa625aaf6cbb67ce2379eade5048d08418e Mon Sep 17 00:00:00 2001 From: luxick Date: Wed, 25 Mar 2026 13:51:45 +0100 Subject: [PATCH] remove leading start breadcrumb --- tpl_header.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tpl_header.php b/tpl_header.php index 459d822..14e59f5 100755 --- a/tpl_header.php +++ b/tpl_header.php @@ -16,6 +16,15 @@ if ($conf['useacl']) { $breadcrumbsHtml = ''; if ($conf['youarehere']) { $breadcrumbsHtml = tpl_youarehere(null, true); + // Remove the "You are here" label and the start page link, + // since the wiki logo already links to the start page. + if ($breadcrumbsHtml) { + // Strip the label span and the home/start page span + $breadcrumbsHtml = preg_replace('/.*?<\/span>/', '', $breadcrumbsHtml); + $breadcrumbsHtml = preg_replace('/.*?<\/span>/', '', $breadcrumbsHtml); + // Remove any leading separator left over after stripping the home link + $breadcrumbsHtml = preg_replace('/^\s*ยป\s*/', '' , trim($breadcrumbsHtml)); + } } if (!$breadcrumbsHtml && $conf['breadcrumbs']) { $breadcrumbsHtml = tpl_breadcrumbs(null, true);