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

This commit is contained in:
Vinoth Kannan 2019-01-29 02:26:55 +05:30
parent 51fdf7a11d
commit 62a0f88e97

View File

@ -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;
}