mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
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() {
|
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) {
|
return Discourse.CategoryList.list('categories').then(function(list) {
|
||||||
var tracking = Discourse.TopicTrackingState.current();
|
var tracking = Discourse.TopicTrackingState.current();
|
||||||
if (tracking) {
|
if (tracking) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user