- Issue created by @dieterholvoet
- @dieterholvoet opened merge request.
- 🇪🇸Spain akalam
I'm having a similar problem with the node edit form. However, it shouldn't break the existing behavior for users who want it, so there should be a setting on the theme to choose if we want to override or not the breadcrumb. The default value of that setting should be the current behavior (override).
- 🇪🇸Spain akalam
Added a new commit with a new setting to skip the breadcrumb override. We are conserving the change of the "Home page" label, but could be a new setting for that particular tweak.
- 🇨🇭Switzerland saschaeggi Zurich
I'm putting this on hold for now, as we have no plans to add more settings at this time, as we are prioritising a stable version.
- 🇷🇺Russia Chi
For me it always prints "Edit [bundle]" text (not a link) as last breadcrumb fragment. I do not understand the reason why it's done this way.
// Add bundle info. $variables['breadcrumb'][] = [ 'text' => t('Edit') . ' ' . $node->type->entity->label(), 'url' => '', ];
Overall I think, it's out of scope for a theme to alter breadcrumbs links.
- 🇨🇭Switzerland saschaeggi Zurich
For me it always prints "Edit [bundle]" text (not a link) as last breadcrumb fragment. I do not understand the reason why it's done this way.
It shows which entity type you're editing. But it seems to be a bug to show "Edit" on the "Delete" action – which we should address.
Overall I think, it's out of scope for a theme to alter breadcrumbs links.
Definitely not for Gin. As we're testing/experimenting with new changes which we might consider to include for Core (Claro) in the future.
- 🇷🇺Russia Chi
For me it always prints "Edit [bundle]" text (not a link) as last breadcrumb fragment.
I've just managed to reproduce the original issue. On canonical node view page the breadcrumbs consist of just one link ("Edit %title"). No link to the home page was provided. Isn't it a bug?
I think the problem here is that the issue title does not match the issue summary.
Issue title describes a feature
Issue summary describes a bug. - Merge request !177Issue #3281984: The breadcrumb shows 'Edit <label>' on all entity routes, even canonical/delete routes → (Merged) created by dieterholvoet
- 🇧🇪Belgium dieterholvoet Brussels
I created a new MR in which I fixed the issue, without introducing any new settings. That part should probably be moved to a separate issue.
- 🇨🇭Switzerland saschaeggi Zurich
I guess we have a caching issue here, as it does not change within an entity. Only if you change to a different entity. And it stays on the one which you visit first.
- 🇧🇪Belgium dieterholvoet Brussels
Couldn't reproduce the caching issue but I added relevant cacheability metadata to the
$variables
array, should be fixed now. - 🇦🇹Austria hudri Austria
Just for documentation: This MR does not fix the permission issue with Gin Toolbar in frontend themes (edit link is shown to users without update permission).
To fix the frontend permission issue use the patch from issue #3319445 🐛 Edit link in breadcrumb region shows even when user has no permission RTBC
- @hudri opened merge request.
- 🇦🇹Austria hudri Austria
Sorry for the noise, I somehow got lost in the Gitlab Web IDE. I wanted to update Dieter's MR with an entity access check for the edit link in the secondary toolbar
https://git.drupalcode.org/issue/gin-3281984/-/commit/f3c1c7700399ebed84...
but somehow lost some other commits on the way along. So I closes my MR213 again, but the fix is a simple one-line change. Hope someone with better Git-Fu skills than me can merge this properly.
- 🇮🇳India nayana_mvr
Verified the MR177 changes and tested it on Drupal version 10.1.x and Gin Theme version 8.x-3.x. The patch works fine and it fixes the original issue mentioned in the ticket. I have added the before and after screenshots for reference.
- Status changed to RTBC
over 1 year ago 6:45am 24 July 2023 - 🇮🇳India Preeti.chawla
@DieterHolvoet @saschaeggi I have applied MR!177 changes, And after adding MR changes entity label working fine. Attached screenshot before and after state. Moving to RTBC
- First commit to issue fork.
- 🇦🇹Austria hudri Austria
Here is an immutable, stale patchfile of MR 177 for RC7, for hotlinking in composer.json.
- First commit to issue fork.
- 🇮🇳India djsagar
Pipeline failed because of conflict in code so moving to NW.
- Status changed to Needs work
12 months ago 10:51am 24 January 2024 - Status changed to Needs review
12 months ago 12:19pm 5 February 2024 - Status changed to RTBC
12 months ago 1:31pm 6 February 2024 - 🇮🇳India Sandeep_k New Delhi
Hi, I've tested MR- MR !177 mergeable on Drupal version- 10.1.9-dev. The patch was applied successfully and looks good to me.
Testing Steps:
- Download/install the Theme "Gin Admin theme"
- Go to Content> Create new or edit an existing node- Clienk on Delete. Attached before result.
- Download this patch and Apply.
- Go back to the Content/Delete- and re-verify this.
Testing Results:
After applying the patch, the Delete confirmation page breadcrumb label is changed now. RTBC++ - 🇦🇹Austria hudri Austria
Here is a stale patch file for RC9 for use inside composer.json.
The MR no longer applies beyond dev, the patch file cherry-picked all all of DieterHolvoet's work. Not intented for development!
- 🇩🇪Germany berliner
This works great and fixes the "Edit [term name]" on taxonomy pages as well. Just tested the last patch file but didn't look at the MR.
- Status changed to Needs work
9 months ago 6:27pm 11 April 2024 - 🇩🇪Germany berliner
Updated patch from #38 for rc10. I hope I didn't miss anything.
I don't have the capacities right now to look at the MR unfortunately.Still setting to "Needs work" to check if the MR needs modifications to be applied to the current dev.
- 🇨🇦Canada teknocat
@djsagar if you give me push access to your forked repo I'll sort out the merge conflict. I have it fixed up on my local already.
- First commit to issue fork.
- 🇦🇷Argentina hanoii 🇦🇷UTC-3
This is a longish issue, I tried following but different things were going on. I happened to work on a fix about url access and I wanted to share my work here.
My recommendation would be to maybe try to get the access bit first (which is easier) and then something more robust for the breadcrumbs in general?
In anyway, the two MR can co-exists and I will be using on a product of mind.
This is pretty much the same fix that the one #3319445-26: Edit link in breadcrumb region shows even when user has no permission → , and they likely should be applied together.
- Assigned to gurpreet@materialplus
- Issue was unassigned.
- Status changed to Needs review
about 1 month ago 12:16pm 9 December 2024 - 🇬🇷Greece n.antonopoulou
The latest patch was applied successfully and the issue was resolved to my project.
- 🇨🇭Switzerland saschaeggi Zurich
Just to be sure: Were you testing MR !177? Thanks for a short feedback
- 🇬🇷Greece christosgeorgiadis
The last cherry-picked patch is indeed based on MR!177
- 🇨🇭Switzerland saschaeggi Zurich
saschaeggi → changed the visibility of the branch 3281984-url-access to hidden.
-
saschaeggi →
committed 79db5e5e on 8.x-3.x authored by
dieterholvoet →
Issue #3281984: The breadcrumb shows 'Edit <label>' on all entity routes...
-
saschaeggi →
committed 79db5e5e on 8.x-3.x authored by
dieterholvoet →
-
saschaeggi →
committed efdebabf on 4.0.x authored by
dieterholvoet →
Issue #3281984: The breadcrumb shows 'Edit <label>' on all entity routes...
-
saschaeggi →
committed efdebabf on 4.0.x authored by
dieterholvoet →
Automatically closed - issue fixed for 2 weeks with no activity.