Not working for url having cap letter e.g

Paths to replace with custom breadcrumbs

/gallery/2020/online-class/The-Online-Classes-Session

in that case breadcrumb is not working

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pankaj1390 created an issue. See original summary.

rakesh.regar’s picture

StatusFileSize
new9.62 KB

@pankaj1390
I checked this and was not able to reproduce this issue, please add steps to reproduce.
Find attached screenshot of breadcrumbs working fine

Branch - 2.x
PHP version - 8.1
Drupal core - 10.1.2

pankaj1390’s picture

Hi @rakesh

I set up the module on local after fresh Drupal installment and applied Paths to replace with custom breadcrumbs
/This-Is-a-Test-Page/page :: test page

Created a basic page and added URL alias : /This-Is-a-Test-Page/page
But it still showing page title : This is a test page
rather test page

I am using below details:

composer require 'drupal/easy_breadcrumb:^2.0'

Drupal core- 10.1.2

Database Version
10.4.28-MariaDB
System
MariaDB

Web Server
Apache/2.4.56 (Win64) OpenSSL/1.1.1t PHP/8.2.4

PHP Version
8.2.4

See setting screenshot:

pankaj1390’s picture

StatusFileSize
new3.4 KB
rakesh.regar’s picture

Status: Active » Needs review
StatusFileSize
new506 bytes

Hi @pankaj1390

I found the issue, created a patch for the same.

rakesh.regar’s picture

StatusFileSize
new627 bytes

please use this new patch.
Instead of using mb_strtolower function 2 times, I have removed it from custom path so it will increase performance while resolving the issue.

greg boggs’s picture

looks good, if we open this one as an MR I can merge it a lot more easily :)

rakesh.regar’s picture

Hi @Greg Boggs

I have opened a MR for the same.

rakesh.regar’s picture

Status: Needs review » Reviewed & tested by the community

Moving it to RTBC as Greg Boggs has verified changes.

greg boggs’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

pankaj1390’s picture

StatusFileSize
new44.11 KB

Hi @rakesh, I am using easy breadcrum module in multi-language site but in place of Site top is showing home on. Is there any configuration for this. Home > gallery but it should be Site top > gallerry

greg boggs’s picture

Can you include your full configuration pankaj?

greg boggs’s picture

Also, can you try the latest dev version?

pankaj1390’s picture

StatusFileSize
new603.77 KB

@greg I observed for multi-language other then default language its showing home.e.g https://www.example.com/gellary its working fine but https://www.example.com/en/gellary its showing home. see configuration screenshot

greg boggs’s picture

got it. Did you try the latest dev version? I created a new issue for this bug here: https://www.drupal.org/project/easy_breadcrumb/issues/3397281