Problem/Motivation
In prototype_preprocess_breadcrumb() we're always making the assumption that we want the current page in the breadcrumb trail. IMO this isn't something Prototype should decide, as other modules handle this much cleaner. Leveraging a module like Custom Breadcrumbs makes this exposable, and it cost me some time figuring out why my settings weren't respected. Looking into the theme for this didn't cross my mind for a while. We should remove this logic and return that functionality to modules.
Issue fork prototype-3557204
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
jnettikRemoved preprocess from theme. Needs review.
Comment #4
jldust commented@jnettik Regarding the breadcrumbs the reason that was add was to support accessibility, can you confirm that the suggested modules supports that or another solution to maintain that feature?
Comment #5
jnettikWhat is the accessibility problem this solves? Are we supposed to always have a home link on breadcrumbs? The Custom Breadcrumbs module does have settings to add this.
Comment #6
jldust commentedNoting that as of 10.3 some of this code is now redundant and should be reconsidered
Comment #7
jldust commentedIn addition to the .theme logic, I've updated the component to support this change.
Comment #8
pixelwhip commentedCode looks good. There are some unrelated changes but those look to just be code formatting improvements. I've tested this locally and it works as expected.
Comment #10
jldust commentedThis has been merged in and will be included in the next tagged release.
Comment #11
jldust commentedThis has been included in the most recent release
Comment #13
jldust commented