Breadcrumb template overriding core template

Created on 2 February 2023, almost 2 years ago
Updated 12 September 2023, about 1 year ago

Problem/Motivation

The breadcrumb template is overriding the Core template to be more accessable. This in itself is not an issue, but it means that breadcrumbs can't be customized using contrib modules (such as Easy Breadcrumb module). The Zurb template has the current page hardcoded in the template, so when choosing to show current page in the Easy Breadcrumb config (for example), the current page shows twice.

Steps to reproduce

1. Install Easy Breadcrumb .
2. Configure Easy Breadcrumb to show current page and remove duplicates.
3. Visit a page with breadcrumbs to see current page shown twice.

🐛 Bug report
Status

RTBC

Version

9.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @arparker
  • Reproduced the issue on local, create a patch Breadcrumb-template-overriding-core-template-3338734-3.patch for this issue.

    Perform Steps:
    1. Install the Drupal 9.0.x version.
    2. Install and set ZURB Foundation Theme and install Easy Breadcrumb module.
    3. create and apply the patch.
    4. Clear the cache and reload the page.

    Testing result: Need review
    Breadcrumb template overriding core template

    Moved the issue to Need Review.

  • 🇮🇳India Akshay kashyap

    Hi @Harish1688,

    Thanks for the work.

    Verified and tested Patch Comment #3 on Drupal 10.1.x Applied patch cleanly

    git apply -v Breadcrumb-template-overriding-core-template-3338734-3.patch
    Checking patch templates/breadcrumb.html.twig...
    Applied patch templates/breadcrumb.html.twig cleanly.
    

    Testing Steps:-
    1. Install Drupal 10.1.x version.
    2. git clone --branch '9.x' git clone --branch '9.x' https://git.drupalcode.org/project/zurb-foundation.git.
    2. Applied Patch #3 /projects/drupal-git/drupal/themes/contrib/zurb-foundation.
    3. Checked the changes difference using git diff
    4. Checked the Output looks good after applying a patch. Attached the screenshot for refernce.

    Testing result:
    Breadcrumb template overriding core template issue fix on Drupal 10.1.x. Moving the issue to RTBC

  • Status changed to RTBC over 1 year ago
  • Status changed to Needs work over 1 year ago
  • 🇺🇸United States sim_1

    This looks good to me and I think it solves the issue, but it does add in new classes on the list items (`breadcrumb-item` and `active`) that aren't used as a part of Foundation, and I don't see them in core's templates in starterkit_theme or stable9.

    I suggest we:
    - remove the extra classes.
    - put the if/else statement inside the <li> like it is in core.

    Or if I'm overlooking the reason why we should add in those classes let me know.

  • Assigned to Mithun S
  • 🇮🇳India Mithun S Bangalore

    Working on the feedbacks.

  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • 🇮🇳India Mithun S Bangalore

    Adding a new patch file based on the feedback on the ticket. Please review the updated patch on the issue.

  • Status changed to RTBC about 1 year ago
  • 🇮🇳India Abh1shek

    Hi @Mithun S, Tested patch your patch #8, it is applied cleanly.
    As suggested by @sim_1, new patch #8 does not creates classes for li tags.
    Also it resolves the issue of breadcrumb template overriding.

    Steps I followed:

    1. Installed Drupal 10.1.2 and installed zurb theme version 9.x through git.
    2. Set theme as default.
    3. Installed Easy Breadcrumb
    4. Applied patch and issue is now resolved.

    Attaching screenshots, please check.

    BEFORE

    AFTER

    As issue is now resolved, moving it to RTBC.

Production build 0.71.5 2024