FIX: refresh topic list on logo click

FIX: refresh topic list on logo click

Fixes a regression where, when homepage is set to “categories”, clicking on logo would no longer reload topic list.

diff --git a/app/assets/javascripts/discourse/templates/discovery/categories.hbs b/app/assets/javascripts/discourse/templates/discovery/categories.hbs
index 907b864..0fea0ce 100644
--- a/app/assets/javascripts/discourse/templates/discovery/categories.hbs
+++ b/app/assets/javascripts/discourse/templates/discovery/categories.hbs
@@ -1,4 +1,4 @@
-{{#discovery-categories refresh=refresh}}
+{{#discovery-categories refresh=(route-action "refresh")}}
   {{component categoryPageStyle
               categories=model.categories
               latestTopicOnly=latestTopicOnly
diff --git a/app/assets/javascripts/discourse/templates/mobile/discovery/categories.hbs b/app/assets/javascripts/discourse/templates/mobile/discovery/categories.hbs
index 907b864..0fea0ce 100644
--- a/app/assets/javascripts/discourse/templates/mobile/discovery/categories.hbs
+++ b/app/assets/javascripts/discourse/templates/mobile/discovery/categories.hbs
@@ -1,4 +1,4 @@
-{{#discovery-categories refresh=refresh}}
+{{#discovery-categories refresh=(route-action "refresh")}}
   {{component categoryPageStyle
               categories=model.categories
               latestTopicOnly=latestTopicOnly

GitHub sha: 03777688

1 Like

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

Revert "FIX: refresh topic list on logo click"