In this case, transfers from those pages would not be counted. We don't use Manufacturers, but you could add conditions to check for any page to go back to. In the case of search, the code could be:
PHP Code:
x_session_register("last_cat");
$referrer = $_SERVER['HTTP_REFERER'];
if (strpos($referrer, "home.php") || strpos($referrer, "search.php")) {
$last_cat = $referrer;
}
else if (!$last_cat) {
$last_cat = 'home.php';
}
$smarty->assign("back_url", $last_cat);