socialengine v4 how to change the page members see after login

909 views Asked by At

I have been trying to do this for days now and cant seem to find any help on how to do is. I want the user after login to be redirected to a different page instead of the members landing page.

1

There are 1 answers

1
Salman On BEST ANSWER

Try checking the code in User/AuthController after this comment Run post login hook. There are several ways to do a custom redirect here.

  1. 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.
  2. Keep a session variable, namely Zend_Session_Namespace('Redirect')->uri
  3. Write a post login hook onUserLoginAfter and pass a redirect parameter in its response.

If all else fails, hard-code the next line of code which redirects to home :P