In Drupal 7, the Rules module was quite simple to use. You create a rule, define it's action and done. In Drupal 8 version of Rules however, i.e the alfa1 version (which is what I'm using), I see some weird behavior.
I am not able to use tokens in data selectors (also autocomplete won't work).
What I want to accomplish: I have two roles: admin and non-admin.
When a user assigned with the role as
admin log in, he should be redirected to his dashboard (url: /admin/dashboard)
When a user assigned with the role of
non-admin, he should be redirected to his particular page (url: /non-admin/dashboard)
There are 2 Rules Conditions related to User Roles:
- one is under "Others" tab (= User Role).
- one is under "User" tab (= User has role(s)).
Both are shown in the image below:
When I choose the 2nd one, I always get an php error (issue already posted on Rules on that).
When I choose the 1st one, no matter what I pass in the Rules Condition, it always returns true and performs the Rules Action.
Am I missing something?