Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Refactor breadcrumb code from #2717537: Breadcrumbs support after solving #2861586: Make it easier to programmatically generate facet links
Comment | File | Size | Author |
---|---|---|---|
#11 | 2912111-9--refactor-breadcrumb-code-with-new-url-generation.patch | 3.34 KB | StryKaizer |
Comments
Comment #2
dragos-dumi CreditAttribution: dragos-dumi as a volunteer commentedComment #3
dragos-dumi CreditAttribution: dragos-dumi as a volunteer commentedComment #4
dragos-dumi CreditAttribution: dragos-dumi as a volunteer commentedComment #5
borisson_In theory this should do it, but it doesn't. Not sure if this is a problem with my refactor or with the actual code we wrote in the getUrl class.
Comment #6
borisson_Comment #8
borisson_Marking this as major, because it looks like this proves that the url generator class doesn't work as expected.
Comment #9
StryKaizerOnly found this issue after I created a patch, thus no interdiff, sry.
Attached patch will fix breadcrumbs for pretty paths too, as url generation used to be hardcoded to querystring structure.
@borisson_: url processor works as expected, but it generates an URL, not a link, thus we need the displayvalue too, which we still need to retrieve from the result.
Comment #10
StryKaizerComment #11
StryKaizerComment #12
borisson_This looks very good, thanks!
Comment #14
borisson_Committed this, thanks!