Issue Bug Closed

#14183FIX: indexed search external links

old_bartv 05/26/04, 15:54 updated 10/02/18, 12:32

Description

When indexed search shows external links (like indexed PDF documents), it does not add the target that is specified in “result_link_target” to the result links.

Here’s a fix: in typo3/ext/indexed_search/pi/class.tx_indexedsearch.php :: printResultRow(), replace

if ($row[“show_resume”]) { // Can link directly.
$title = ‘‘.$row[“result_number”].”: “.$this->makeTitle($row
).’
‘;
}

with

if ($row[“show_resume”])        {       // Can link directly.
// Target set?
$target = $this->conf[“result_link_target”]?‘target=”’.$this->conf[“result_link_target”].’”’:’‘;
$title = ‘<a href=”’.$row[“data_filename”].’” ‘ . $target . ‘>’.$row[“result_number”].”: “.$this->makeTitle($row).’</a>’;
}
(issue imported from #M120)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.