FIX: More link in topic page search shouldn't navigate to full page result

FIX: More link in topic page search shouldn’t navigate to full page result

diff --git a/app/assets/javascripts/discourse/lib/search.js.es6 b/app/assets/javascripts/discourse/lib/search.js.es6
index 8fab105..a3f47f7 100644
--- a/app/assets/javascripts/discourse/lib/search.js.es6
+++ b/app/assets/javascripts/discourse/lib/search.js.es6
@@ -80,7 +80,7 @@ export function translateResults(results, opts) {
           more: groupedSearchResult[`more_${name}`]
         };
 
-        if (result.more && name === "posts" && opts.fullSearchUrl) {
+        if (result.more && componentName === "topic" && opts.fullSearchUrl) {
           result.more = false;
           result.moreUrl = opts.fullSearchUrl;
         }

GitHub sha: 62a0f88e

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there: