[英]Where to locate my Drupal redirect
I have a drupal 7 site and it is redirecting to a page after login. 我有一个drupal 7网站,登录后将重定向到页面。 I don't want it to redirect to that page but want it to redirect to another page.
我不希望它重定向到该页面,但希望它重定向到另一个页面。
Where can I look for what controls this? 我在哪里可以找到什么控制方法? I am fairly certain this is going to be in the admin area of drupal but have not found it yet.
我相当确定这将在drupal的管理区域中,但尚未找到它。
You can change the destination via rules/Actions. 您可以通过规则/操作来更改目的地。
Read more at https://www.drupal.org/node/683696 在https://www.drupal.org/node/683696上阅读更多内容
You have 3 options here: 您在这里有3个选择:
Simply install the Login Destination module and set the path you want your user to be redirected to in the admin settings page of the module. 只需安装“ 登录目标”模块,然后在该模块的“管理设置”页面中设置您希望用户重定向到的路径。
Use the hook_user_login
hook hook_user_login(&$edit, $account) 使用
hook_user_login
挂钩hook_user_login(&$ edit,$ account)
Use the Rules to specify a rule for when an user logs in. 使用“规则”可以指定用户登录的规则。
You can : 您可以 :
Default front page
Default front page
You can use Rules module, 您可以使用“规则”模块,
The Rules module allows site administrators to define conditionally executed actions based on occurring events. 规则模块允许站点管理员基于发生的事件定义有条件地执行的操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.