How to redirect user to a specific page after they login if they belong to a certain role?

后端 未结 9 1212
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-11 04:26

We have certain users in our member list that have a role \"vendor\" attached to them. All such members are to be redirected to a certain page upon login. How can this be ac

9条回答
  •  不知归路
    2020-12-11 04:56

    For Drupal 7

    Action --> admin/config/system/actions - Redirect to URL

    then enable your trigger module

    Trigger --> /admin/structure/trigger/node

    if your are trying to login redirect just follow this(select user tab in the page)

    go to --> admin/structure/trigger/user

    then Trigger: After a user has logged in

    choose an action -->Redirect to URL and assign.

    Then clear the cache.

    It will work for you!

提交回复
热议问题