Breadcrumbs duplicate with Easy Breadcrumb module

Created on 27 May 2024, 7 months ago
Updated 18 September 2024, 3 months ago

Hello and thanks for this theme,

Problem/Motivation

When I use this theme with Easy Breadcrumb module , the last item of the breadcrumb trail duplicates.

Steps to reproduce

  1. Install Mahi theme
  2. Install Easy Breadcrumb module
  3. Activate breadcrumb block

Proposed resolution

I've just commented out the code below, but there could better be a check for the user's settings and module installations too.

/* *
//  * Add current page to breadcrumb.
//  */
// function mahi_preprocess_breadcrumb(&$variables) {
// 	$request = \Drupal::request();
// 	$route_match = \Drupal::routeMatch();
// 	$page_title = \Drupal::service('title_resolver')->getTitle($request, $route_match->getRouteObject());
// 	if (!empty($page_title)) {
// 		$variables['breadcrumb'][] = [
// 			'text' => $page_title,
// 		];
// 		// Add cache context based on url.
// 		$variables['#cache']['contexts'][] = 'url';
// 	}
// }

Best,
Orkut

🐛 Bug report
Status

Postponed

Version

1.0

Component

Code

Created by

🇹🇷Turkey orkut murat yılmaz Istanbul

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

Comments & Activities

Production build 0.71.5 2024