I wanted to redirect user to "Home" page instead of "My Account" page after login, and i was successful to achieve this making use of
<customer_login>
event.
But I was also redirected to home page while i login from onepage checkout which i don't want.
Below is my observer function
public function setRedirectOnLogin(){ $session = Mage::getSingleton('customer/session'); if (strpos($session->getBeforeAuthUrl(), 'checkout') === false) $session->setAfterAuthUrl(Mage::getBaseUrl()); $session->setBeforeAuthUrl(''); }
Can any one please guide how can i stop user from redirecting it to homepage after login from onepage checkout?
Thank You.