Forums / General Questions / Login Page Redirect to My Account?

Login Page Redirect to My Account?

Locked

Started by zoethreads on 27 Oct 2009, 5:34 PM · Views: 3,020

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
27 Oct 2009, 5:34 PM
#1
zoethreads avatar

zoethreads

New Zenner

Join Date:
Oct 2009
Posts:
7
Plugin Contributions:
0

Login Page Redirect to My Account?

Hello,

I'm sorry if this has been answered before - I can not seem to find the solution.

Right now, when a customer logins from the login page, they are redirected to my home page. I would like them to land in their account page instead. How do I do this?

Thanks,

Lauren Ellis

10 Nov 2009, 12:29 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,123
Plugin Contributions:
56

Re: Login Page Redirect to My Account?

You can effect this behavior via the following CORE FILE edit. In \includes\modules\pages\login\header.php (line 135 for 1.38a):

        } else {
          zen_redirect(zen_href_link(FILENAME_DEFAULT, '', $request_type));
        }

change this to:

        } else {
          zen_redirect(zen_href_link(FILENAME_ACCOUNT, '', $request_type));
        }

This will cause the default login (i.e. not from a timeout or login-required action) to go to the 'My Account' page instead of the home page. Be sure to make a backup copy of the original header.php file!

26 May 2010, 6:31 PM
#3
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Re: Login Page Redirect to My Account?

Hi,

Can this be done with 1.3.9c ?

Thanks.

27 May 2010, 1:28 AM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,123
Plugin Contributions:
56

Re: Login Page Redirect to My Account?

The redirect functionality has not changed from 1.3.8 to 1.3.9; it'll work just fine...