Hello,
JA K2 Filter does not have this option but you can update small code as follow to achieve that:
– Open the file:
components/com_jak2filter/models/itemlist.php
– Find the code snippet below:
[PHP]case ‘search’ :
$badchars = array(‘#’, ‘>’, ‘<‘, ‘\’);
$search = trim(str_replace($badchars, ”, JRequest::getString(‘searchword’, null)));
$sql = $this->prepareSearch($search);
if (!empty($sql))
{
$query .= $sql;
}
/*else
{
$result = 0;
return $result;
}*/
break;[/PHP]
And replace it with:
[PHP]case ‘search’ :
$badchars = array(‘#’, ‘>’, ‘<‘, ‘\’);
$search = trim(str_replace($badchars, ”, JRequest::getString(‘searchword’, null)));
$sql = $this->prepareSearch($search);
if (!empty($sql))
{
$query .= $sql;
}
else
{
$app = JFactory::getApplication();
$app->redirect(‘{your_url_here}’);
}
break;[/PHP]
Where {your_url_here} is the page that you want to redirect user to