User tests: Successful: Unsuccessful:
Pull Request for Issue #46562 .
On line 86 of /modules/mod_breadcrumbs/src/Helper/BreadcrumbsHelper.php edited the value assigned to $item->link for the home page in the getHomeItem function:
$item->link = 'index.php?Itemid=' . $home->id;
the $item->link was ignoring some params in $home->link so that it results different from the Home link took from the Pathway.
In tmpl/default.php code, lines 33-38 check if there are duplicated entries
// Get rid of duplicated entries on trail including home page when using multilanguage
for ($i = 0; $i < $count; $i++) {
if ($i === 1 && !empty($list[$i]->link) && !empty($list[$i - 1]->link) && $list[$i]->link === $list[$i - 1]->link) {
unset($list[$i]);
}
}
looking also for duplicated home pages in a multilanguage site.
But with different ->link values the two Home links won't match, so they are both visible in the output.
In a multilanguage site, a language specific menu structure:
mod_breadcrumbs config:
Home: show
Text for home entry: empty, no value
Last: show
Home > Home > News
Home > News
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Modules Front End |
| Title |
|
||||||
I have tested this item ✅ successfully on a4d62f6
I have tested this successfully! Thanks @stefanoel for the fix!
Happy Holidays!
| Status | Pending | ⇒ | Ready to Commit |
| Labels |
Added:
bug
PR-5.4-dev
|
||
RTC
| Labels |
Added:
RTC
|
||
✅ Final test before merge with JBT
gh pr checkout 46581| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-01-08 06:38:41 |
| Closed_By | ⇒ | muhme |
Thank you @stefanoel for your contribution. Thank you @alikon and @exlemor for testing.
I have tested this item ✅ successfully on a4d62f6
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46581.