FIX: If default page is categories, anonymous users were seeing latest
categories when going into a category.
This commit is contained in:
parent
d298e2e065
commit
79b406c0f3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue