Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a multilingual site, which has French as the default language. After installing this module, I noticed that my primary links were no longer visible on the English home page. The attached patch fixes the problem for me, it ensures that menu functions don't get called in menu_breadcrumb_init() if the current page is the front page. This patch has the added benefit of ensuring that the Home link on the front page always points to the front page, which would fix issues like this #278148: menu breadcrumb leads to wrong "home" breacrumb on startpage.
Comment | File | Size | Author |
---|---|---|---|
#6 | menu_breadcrumb-HEAD_front_page2.patch | 1.41 KB | dboulet |
#2 | menu_breadcrumb-HEAD_front_page.patch | 1.37 KB | dboulet |
menu_breadcrumb_HEAD_front_page.patch | 1.34 KB | dboulet |
Comments
Comment #1
niff CreditAttribution: niff commentedI had a similar problem with the primary menu, but on a Swedish site. Clicking any home link (link or logo) with the Swedish language active made the primary menu change language to English, but with the rest of the site in Swedish. This patch fixed that problem.
Comment #2
dboulet CreditAttribution: dboulet commentedImproved patch, rolled against latest HEAD.
Comment #3
xurizaemonLooks like this patch will need re-rolling against #595282: Menu weights (unless that fix fixes this one).
Comment #4
dboulet CreditAttribution: dboulet commentedIf #595282: Menu weights gets committed, I can re-roll the last patch, but until then it still applies to the latest development snapshot, and is still valid. Since that issue is still under heavy development, I'll assume that there is still a possibility that this patch gets committed first.
Comment #5
xurizaemonYou're right. I've been cleaning up a bunch of older issues today, and didn't spot that your patch was submitted quite recently. Sorry for missing that.
Comment #6
dboulet CreditAttribution: dboulet commentedNew patch for review.
Comment #7
dboulet CreditAttribution: dboulet commented@xurizaemon Any chance of getting this reviewed? Patch still applies cleanly.
Comment #8
Ryan Palmer CreditAttribution: Ryan Palmer commentedPatch works great for me. Thanks.
Comment #9
xurizaemonComment #10
xurizaemonThanks - committed.