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.
Here is a patch for D6.
Is this also possible for D7 version please?
Comment | File | Size | Author |
---|---|---|---|
#4 | custom_breadcrumbs-absolute_paths_support-921702-4.patch | 1.83 KB | bpresles |
custom_breadcrumbs.module.patch | 747 bytes | jean.cedric.t | |
Comments
Comment #1
jean.cedric.t CreditAttribution: jean.cedric.t commentedAfter thinking about it, it maybe better to create another identifier.
Comment #2
MGN CreditAttribution: MGN commentedMarking this as needs work because the suggested changes would break normal behavior. Custom breadcrumbs has always assumed the paths are internal drupal paths. I think the correct modification to use absolute paths would be to set $options['absolute'] = TRUE. Of course more would be needed to make this feature request work. I like the idea of adding a special identifier for this and would be happy to test a patch (against 6.x-2.x-dev) that did this.
Comment #3
MGN CreditAttribution: MGN commentedClosing this issue because it seems to have gone stale. See comments in #2 and reopen if there is interest in this.
Comment #4
bpresles CreditAttribution: bpresles commentedProposed better patch for this issue.
This in facts detects wether the path of the item is absolute or not (based on wether a host and scheme part is found by parse_url()), and generate an absolute link if it's the case. The original behavior remains strictly the same in case of relative paths.
Comment #5
Summit CreditAttribution: Summit as a volunteer commentedHi, Anyone knows how to build this patch in Drupal 7 please?
greetings, Martijn
Comment #6
Summit CreditAttribution: Summit as a volunteer commentedComment #7
Summit CreditAttribution: Summit as a volunteer commentedHi, not necessary anymore. I used the readme.txt function in my template.php. greetings, Martijn