FIX: clear tag filter when changing category filter

This commit is contained in:
Neil Lalonde 2016-10-28 17:27:47 -04:00
parent 3505a13bea
commit 4d58a00387
1 changed files with 0 additions and 10 deletions

View File

@ -140,16 +140,6 @@ export default Discourse.Route.extend({
didTransition() { didTransition() {
this.controllerFor("tags.show")._showFooter(); this.controllerFor("tags.show")._showFooter();
return true; return true;
},
willTransition(transition) {
if (!Discourse.SiteSettings.show_filter_by_tag) { return true; }
if ((transition.targetName.indexOf("discovery.parentCategory") !== -1 ||
transition.targetName.indexOf("discovery.category") !== -1) && !transition.queryParams.allTags ) {
this.transitionTo("/tags" + transition.intent.url + "/" + this.currentModel.get("id"));
}
return true;
} }
} }
}); });