Maybe I misunderstood something, but it seems that it is currently impossible to use an absolute path. So I made a patch.

Did I have made a mistake ?

Members fund testing for the Drupal project. Drupal Association Learn more


jean.cedric.t’s picture

After thinking about it, it maybe better to create another identifier.

MGN’s picture

Status: Needs review » Needs work

Marking 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.

MGN’s picture

Status: Needs work » Closed (won't fix)

Closing this issue because it seems to have gone stale. See comments in #2 and reopen if there is interest in this.

bpresles’s picture

Assigned: jean.cedric.t » bpresles
Status: Closed (won't fix) » Needs review
1.83 KB

Proposed 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.