From 4d58a00387f6c911b3d35c126289552f93044acc Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 28 Oct 2016 17:27:47 -0400 Subject: [PATCH] FIX: clear tag filter when changing category filter --- .../javascripts/discourse/routes/tags-show.js.es6 | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/assets/javascripts/discourse/routes/tags-show.js.es6 b/app/assets/javascripts/discourse/routes/tags-show.js.es6 index c82acb9eabb..db344ef8840 100644 --- a/app/assets/javascripts/discourse/routes/tags-show.js.es6 +++ b/app/assets/javascripts/discourse/routes/tags-show.js.es6 @@ -140,16 +140,6 @@ export default Discourse.Route.extend({ didTransition() { this.controllerFor("tags.show")._showFooter(); 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; } } });