From be75d20fadf4952753c9a27625e9ba9292afe0e5 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 7 Oct 2021 06:03:52 +0530 Subject: [PATCH] FIX: do not persist tags query param (#14527) This commit fixes the inconsistent behaviour where a user lands on blank page from the `/new-topic` route if the tag beign used does not have any topic attached. https://meta.discourse.org/t/tag-route-when-creating-a-topic-via-url/204973 --- .../javascripts/discourse/app/controllers/discovery-sortable.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/controllers/discovery-sortable.js b/app/assets/javascripts/discourse/app/controllers/discovery-sortable.js index 4fab6af6fa7..1cb557d92ed 100644 --- a/app/assets/javascripts/discourse/app/controllers/discovery-sortable.js +++ b/app/assets/javascripts/discourse/app/controllers/discovery-sortable.js @@ -9,7 +9,6 @@ export const queryParams = { search: { replace: true, refreshModel: true }, max_posts: { replace: true, refreshModel: true }, q: { replace: true, refreshModel: true }, - tags: { replace: true }, before: { replace: true, refreshModel: true }, bumped_before: { replace: true, refreshModel: true }, f: { replace: true, refreshModel: true },