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

Component:Rules Core» Rules Engine

Sorry, I meant Rules 2. Getting confused with Views 3...

Version:7.x-2.0-alpha5» 7.x-2.0-beta2

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

Status:Active» Closed (works as designed)

Ah, 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.

Follow up issue for anyone who's interested: http://drupal.org/node/1202750