Closed (works as designed)
Project:
Rules
Version:
7.x-2.0-beta2
Component:
Rules Engine
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2011 at 13:31 UTC
Updated:
28 Jun 2011 at 15:32 UTC
Still getting used to using Data Comparison in Rules 3 but I don't understand why the following rule won't work. It's supposed to be a simple check against the current path followed by a redirect.
Event: Content is viewed
Conditions: Data comparison 'site:current-page:path' equals 'node/add/company' (a path that does exist BTW).
Actions: Page redirect 'faq' (again, this path does indeed exist)
Any ideas?
Comments
Comment #1
dddbbb commentedSorry, I meant Rules 2. Getting confused with Views 3...
Comment #2
dddbbb commentedJust upgraded Rules to 7.x-2.0-beta2 (latest stable release) and I'm experiencing the same problem.
Can anybody get Content is viewed > Data comparison 'site:current-page:path' to trigger?
Comment #3
dddbbb commentedAh, I see what's going on now. 'Content is viewed' only triggers when viewing nodes. Will create a separate issue for how to trigger rules when visiting non-node pages.
Comment #4
dddbbb commentedFollow up issue for anyone who's interested: http://drupal.org/node/1202750