diff --git a/app/assets/javascripts/discourse/controllers/full-page-search.js.es6 b/app/assets/javascripts/discourse/controllers/full-page-search.js.es6
index 5fe60501c43..cdbc957b15d 100644
--- a/app/assets/javascripts/discourse/controllers/full-page-search.js.es6
+++ b/app/assets/javascripts/discourse/controllers/full-page-search.js.es6
@@ -286,5 +286,18 @@ export default Ember.Controller.extend({
this._search();
}
},
+
+ logClick(topicId) {
+ if (this.get('model.grouped_search_result.search_log_id') && topicId) {
+ ajax('/search/click', {
+ type: 'POST',
+ data: {
+ search_log_id: this.get('model.grouped_search_result.search_log_id'),
+ search_result_id: topicId,
+ search_result_type: 'topic'
+ }
+ });
+ }
+ }
}
});
diff --git a/app/assets/javascripts/discourse/templates/full-page-search.hbs b/app/assets/javascripts/discourse/templates/full-page-search.hbs
index 163aac03fc7..f8150338606 100644
--- a/app/assets/javascripts/discourse/templates/full-page-search.hbs
+++ b/app/assets/javascripts/discourse/templates/full-page-search.hbs
@@ -77,7 +77,7 @@
{{track-selected selectedList=selected selectedId=result.topic}}
{{/if}}
-
+
{{topic-status topic=result.topic disableActions=true}}{{#highlight-text highlight=q}}{{{unbound result.topic.fancyTitle}}}{{/highlight-text}}