Fixed endless redirect loop in search.php