mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 13:17:20 -05:00
FIX: If default page is categories, anonymous users were seeing latest
categories when going into a category.
This commit is contained in:
@@ -17,6 +17,10 @@ Discourse.DiscoveryCategoriesRoute = Discourse.Route.extend({
|
||||
},
|
||||
|
||||
model: function() {
|
||||
// TODO: Remove this and ensure server side does not supply `topic_list`
|
||||
// if default page is categories
|
||||
PreloadStore.remove("topic_list");
|
||||
|
||||
return Discourse.CategoryList.list('categories').then(function(list) {
|
||||
var tracking = Discourse.TopicTrackingState.current();
|
||||
if (tracking) {
|
||||
|
||||
Reference in New Issue
Block a user