When placing a breadcrumb block in a way that it is also rendered in a layout builder preview, it seems to be using the path of the layout builder page to generate the breadcrumb trail.

In my specific case I am adding the system breadcrumbs to a node template with {{ drupal_block('system_breadcrumb_block') }}

And it is rendering the breadcrumb like this: Node > [current_node:label] > [current_node:label]

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

aprice42 created an issue. See original summary.

rahaf albawab’s picture

StatusFileSize
new2.94 KB

It working now on multi lengual sites

greg boggs’s picture

Can you update the merge request? It does not appear to be mergable:

https://git.drupalcode.org/project/easy_breadcrumb/-/merge_requests/57

renatog’s picture

Issue tags: +Needs merge request, +Novice
aprice42’s picture

Status: Active » Needs review

I rebased the merge request. Looks like it can merge now.

qusai taha’s picture

StatusFileSize
new3.06 KB

Re-roll the patch to latest version

greg boggs’s picture

Status: Needs review » Needs work

patch needs to be committed to the merge request and tested.

odai jbr’s picture

Issue tags: -
StatusFileSize
new2.31 KB

Re-roll to work with version 2.0.6

greg boggs’s picture

Awesome. Thanks @odai Jbr. Can you update the merge request so I can get this into the release?

akshaydalvi212’s picture

Assigned: Unassigned » akshaydalvi212

I will work on this issue, and provide the MR.

akshaydalvi212’s picture

Assigned: akshaydalvi212 » Unassigned
Status: Needs work » Needs review

updated the PR kindly review it.

greg boggs’s picture

Status: Needs review » Needs work

It looks like it needs a rebase against the latest 2.0 code so that it's mergeable. The dev release has a buuunch of coding standards fixes that have probably impacted this merge.

spuky made their first commit to this issue’s fork.

spuky’s picture

brought the MR up to dev things to do
- convert \Drupal::routeMatch()->getParameters(); to DI
- fix Unittests

spuky’s picture

Remaining TODOs:
- fix Unittests

spuky’s picture

Status: Needs work » Needs review

fixed the Tests did not try that out yet...

spuky’s picture

Issue tags: -Novice

ericgsmith made their first commit to this issue’s fork.

ericgsmith’s picture

Status: Needs review » Needs work

I've added test coverage.

https://git.drupalcode.org/issue/easy_breadcrumb-3305870/-/jobs/5365762#... shows the error I mentioned in the MR:

There was 1 error:
1) Drupal\Tests\easy_breadcrumb\Functional\EasyBreadcrumbLayoutBuilderTest::testLayoutBuilderSupport
Exception: Warning: Undefined array key "entity_type_id"

After reverting fdf560dd the test now passes : https://git.drupalcode.org/issue/easy_breadcrumb-3305870/-/jobs/5365770

However this reintroduces the phpstan issue.

Have not done a proper review of the code / changes - likely the intent of fdf560dd should still be progress to resolve the issue although now there is test coverage to ensure it works.

Setting to needs work as it either needs the baseline updated / accepted or improvements to not introduce new phpstan issues.