If you don’t want all your search results to open on the front page of your website just use this hack. After it they will open on a separate page.
Just open your-site/components/com_search/controller.php
Find this part:
// No need to guess Itemid if it’s already present in the URL
if (JRequest::getInt(‘Itemid’) > 0) {
$post[‘Itemid’] = JRequest::getInt(‘Itemid’);
} else {
// set Itemid id for links
$menu = &JSite::getMenu();
$items = $menu->getItems(‘link’, ‘index.php?option=com_search&view=search’);
if(isset($items[0])) {
$post[‘Itemid’] = $items[0]->id;
}
}
Change it to this:
// set Itemid id for links
$menu = &JSite::getMenu();
$items = $menu->getItems(‘link’, ‘index.php?option=com_search&view=search’);
if(isset($items[0])) {
$post[‘Itemid’] = $items[0]->id;
}