FIX: use dedicated site attribute in category + tag filtered pages too.

This commit is contained in:
Vinoth Kannan 2020-02-21 15:55:17 +05:30
parent 3af2670bd5
commit 8a031f19dc

View File

@ -67,7 +67,7 @@ function findTopicList(store, tracking, filter, filterParams, extras) {
}
Session.currentProp("topicList", list);
if (list.topic_list && list.topic_list.top_tags) {
if (list.filter.startsWith("c/")) {
if (list.filter.startsWith("c/") || list.filter.startsWith("tags/c/")) {
Site.currentProp("category_top_tags", list.topic_list.top_tags);
} else {
Site.currentProp("top_tags", list.topic_list.top_tags);