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]
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3305870-9.patch | 2.31 KB | odai jbr |
| #7 | 3305870-7.patch | 3.06 KB | qusai taha |
| #3 | 3305870-3.patch | 2.94 KB | rahaf albawab |
Issue fork easy_breadcrumb-3305870
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
Comment #3
rahaf albawab commentedIt working now on multi lengual sites
Comment #4
greg boggsCan you update the merge request? It does not appear to be mergable:
https://git.drupalcode.org/project/easy_breadcrumb/-/merge_requests/57
Comment #5
renatog commentedComment #6
aprice42 commentedI rebased the merge request. Looks like it can merge now.
Comment #7
qusai taha commentedRe-roll the patch to latest version
Comment #8
greg boggspatch needs to be committed to the merge request and tested.
Comment #9
odai jbr commentedRe-roll to work with version 2.0.6
Comment #10
greg boggsAwesome. Thanks @odai Jbr. Can you update the merge request so I can get this into the release?
Comment #11
akshaydalvi212 commentedI will work on this issue, and provide the MR.
Comment #12
akshaydalvi212 commentedupdated the PR kindly review it.
Comment #13
greg boggsIt 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.
Comment #15
spuky commentedbrought the MR up to dev things to do
- convert \Drupal::routeMatch()->getParameters(); to DI
- fix Unittests
Comment #16
spuky commentedRemaining TODOs:
- fix Unittests
Comment #17
spuky commentedfixed the Tests did not try that out yet...
Comment #18
spuky commentedComment #20
ericgsmith commentedI've added test coverage.
https://git.drupalcode.org/issue/easy_breadcrumb-3305870/-/jobs/5365762#... shows the error I mentioned in the MR:
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.