i am working on application which includes sending mails, containing links.when user click on that link it checks if user is login or not, if not login then redirect to login action , otherwise redirect to particular link action.
i want flow as, when user login it should be redirect to that particular action instead of homepage of user.Please tell me solution to this problem,