Try checking the code in User/AuthController
after this comment Run post login hook
. There are several ways to do a custom redirect here.
- specify a
return_url
parameter in the link to login page. You can also 64-bit encode the redirect url so that it is compact. - Keep a session variable, namely
Zend_Session_Namespace('Redirect')->uri
- Write a post login hook
onUserLoginAfter
and pass aredirect
parameter in its response.
If all else fails, hard-code the next line of code which redirects to home :P