Many users wondered, why the redirection of a user, who is logging in, won't work since Mambo 1.0.3.
A user, who wants to checkout and order his products has to be logged in before checkout. If he does the login on the checkout.index.php he is redirected to the frontpage. This is very irritating for he has to navigate back to the cart -> checkout.
To fix this problem, go to YOURMAMBOPATH/index.php and edit the file. You must replace if($return) with if($_REQUEST['return']):
if ($option == "login") {
$mainframe->login();
if ($_REQUEST['return']) {
mosRedirect($_REQUEST['return']);
} else {
mosRedirect('index.php');
}
} else if ($option == "logout") {
$mainframe->logout();
if ($_REQUEST['return']) {
mosRedirect($_REQUEST['return']);
} else {
mosRedirect('index.php');
}
}
The redirection will now work successfully.