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.
Hey!
Given a rule component that creates a text string [views_args].
I can't seem to use this previously defined variable in creating a redirect.
It's not in the list, and I can't use it directly either.
It is however present when using devel to debug the rule.
Is there anything I'm missing here?
Is it impossible to use a text string when creating a url?
Comments
Comment #1
sevanden CreditAttribution: sevanden commentedI have a similar issue.
I'm trying to redirect a user to a node/edit/[content_type] page but I need to pass an argument in that redirect which is retrieved from the node this particular user flagged.
Regardless of the variable type I use, there are no replacement patterns visible or available.
How can I get this done?
Comment #2
PatchRanger CreditAttribution: PatchRanger commented"Page redirect" expects parameter to be of URI type - so you should create a variable of URI type, instead of just Text as you (and me, and everybody else) did.
While it is probably not the most dangerous bug (because it could be easily "work-arounded") - but it is somewhat annoying. Turning the issue into feature request with such formulation: Support for passed variable of type Text.
Comment #2.0
PatchRanger CreditAttribution: PatchRanger commentedMore informative.
Comment #3
TR CreditAttribution: TR commentedWell maybe I'm missing something, but I don't see the problem here. #2 says that the parameter is supposed to be a URI, and that's true, but you can always switch to direct input and craft your own URL using text and tokens.
If you think this is still an issue please post the export of a Rule which demonstrates the problem.
Comment #4
TR CreditAttribution: TR commentedNo further information provided.