I think the title says it all. I suspect that using parse_url or drupal_parse_url on the URL components, and passing the resulting $options to l() would make this possible

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrfelton’s picture

Status: Active » Needs review
FileSize
1022 bytes

Seems to do the job.

fago’s picture

Status: Needs review » Needs work

Makes sense to me, though the help text still says just paths are supported. I guess we should improve it then to say query strings and fragments are supported.

mwallenberg’s picture

Is there any progress on this issue? I'm currently building a site which could really use this functionality, and I would really like to stick to Rules for the breadcrumbs (and not add Custom breadcrumbs just for a single content type).

mitchell’s picture

Status: Needs work » Reviewed & tested by the community

If there's a known error in phpdocs with an open issue tracking the necessary update, there's no harm in making the commit.. I think it makes more sense to err toward executable code completeness over correctness, especially when correctness is easily replaced with partial/pseudo-correctness when not erring toward incompleteness, as shown by #1 + #3.

...We could even change the status options to include 'needs change notification' or 'needs docs updates' too!

fago’s picture

Status: Reviewed & tested by the community » Needs work

Nop, updating the UI texts is the very least that we need to do. I won't commit anything that works contrary to what the UI says, thus let's just fix the patch to update the help text accordingly.

mitchell’s picture

Component: Provided Rules integration » Rules Core

Updated component.

TR’s picture

Priority: Normal » Minor
Issue summary: View changes
Issue tags: +Needs tests

Patch still applies, but #5 has not been addressed.

Also need to add a test case - we already have a test case for setting breadcrumbs, so it should be trivial to copy that and append a query string to the test action.

TR’s picture

Title: Unable to set breadcrumbs that contain querystring using the Rules set breadcrumb action » Allow query strings when using the Rules set breadcrumb action
Category: Bug report » Feature request
Issue tags: +Novice, +Contributor
TR’s picture

Status: Needs work » Postponed

This action isn't going to be ported to D8 (See #2351979: Port "Set breadcrumb" action to D8)

If it's going to be put into D7, then someone needs to work on it - no one has for the past 8 years, and it's not on my to-do list so I'm marking this as postponed. Feel free to re-open it if you're willing to write the tests and update the above patch as requested in #5.

TR’s picture

Status: Postponed » Closed (won't fix)

No response, I guess no one wants this anymore.