Skip to content

Commit fde4261

Browse files
committed
Fixing the issue with wrong html when alias matching the searched keys.
1 parent 5c60575 commit fde4261

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/elasticsearch_connector_search_api/service.inc

+4-1
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,10 @@ class SearchApiElasticsearchConnector extends SearchApiAbstractService {
17821782
$item_title = $index->datasource()->getItemLabel($item);
17831783
$url_item = $index->datasource()->getItemUrl($item);
17841784
if (!empty($search->options['custom']['link_suggestions'])) {
1785-
$matches[$item_title] = l($item_title, $url_item['path'], array('html' => TRUE));
1785+
$matches[$item_title] = array(
1786+
'user_input' => '',
1787+
'suggestion_suffix' => l($item_title, $url_item['path'], array('html' => TRUE)),
1788+
);
17861789
}
17871790
else {
17881791
$matches[$item_title] = $item_title;

0 commit comments

Comments
 (0)