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

sevanden’s picture

I 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?

PatchRanger’s picture

Title: Redirect: Missing previously defined variables » Page redirect action: Support for passed variable of type Text
Version: 7.x-2.1 » 7.x-2.x-dev
Category: support » feature

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

PatchRanger’s picture

Issue summary: View changes

More informative.

TR’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

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

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further information provided.