What I have in my Mage site is:
echo "<div class='block-content'><ul>";
foreach($listeditems as $optionId => $value) {
echo "<li class='item'><a href=".Mage::getURL()."catalogsearch/result/?item=".$optionId.">" . $value . "</a></li>";
}
echo "</ul></div>";
But I want it to echo the matching URL instead of a list of search result items.