From f9e8c51e7668ec3153e89e82aa7817c5ad1f2796 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Wed, 12 May 2021 20:01:04 -0400 Subject: [PATCH] Don't add filter q if not defined Otherwise, the backend controller will think we are searching, not filtering, and fail to apply filters. --- extensions/tags/js/src/forum/addTagFilter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/tags/js/src/forum/addTagFilter.js b/extensions/tags/js/src/forum/addTagFilter.js index b7492a230..e2aff79b1 100644 --- a/extensions/tags/js/src/forum/addTagFilter.js +++ b/extensions/tags/js/src/forum/addTagFilter.js @@ -91,7 +91,9 @@ export default function() { params.filter.tag = this.params.tags; // TODO: replace this with a more robust system. const q = params.filter.q; - params.filter.q = q ? `${q} tag:${this.params.tags}` : ''; + if (q) { + params.filter.q = `${q} tag:${this.params.tags}`; + } } }); }