开发者

Drupal email authentication forwarding to correct node

In Drupal I generate an email using the Rules module. In the email it sends a link to the node updated.

http://mysite/node/20

The nose can only be seen by authenticated users.

When I click on that link and I am logged in it goes to the node. If I am not logged in and click on the link you would get an accessed denied.

I use Redirect 403 to User Login module to direct people to the login form. After logging in the user is taken to the page. Wou开发者_JAVA百科ld it be possible to take the user to http://mysite/node/20 which was sent in the email?

How would you go about doing this?


after logging in, user will be redirected to which page?

the drupal's query string "destination" can redirect you after submitting a form for example..

action="/action/do-form?destination=node/20"

and after submission, you get redirected to that page. so if 403 redirect module collects the user previous page - which is in that case node 20, it should work without a problem :-/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜