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.
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 CreditAttribution: dddbbb commentedSorry, I meant Rules 2. Getting confused with Views 3...
Comment #2
dddbbb CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: dddbbb commentedFollow up issue for anyone who's interested: http://drupal.org/node/1202750