Opening search results in a new window

By default, the Finder search results open in the parent window.  You can change this by creating a layout override for this the search results page.

The directory default_template refers to the template that is set as the default for your site.  Please replace this name with the actual name of the template directory.

To create the layout override for the search results page, find the file:

/components/finder/search/tmpl/default_results.php

Copy this to:

/templates/default_template/html/com_finder/search/default_results.php

In the new file, find the lines that look similar to the following:

<a href="/<?php echo JRoute::_($item->url); ?>">
    <?php echo ($item->title ? $item->title : JText::_('Untitled')); ?></a>

Add a target attribute to the anchor tag like so:

<a href="/<?php echo JRoute::_($item->url); ?>" target="_blank">
    <?php echo ($item->title ? $item->title : JText::_('Untitled')); ?></a>