From 9e916854457bdde0ea1eb66a76065ec5fb63f8c7 Mon Sep 17 00:00:00 2001 From: M Fahru Date: Wed, 22 Jun 2022 08:20:33 -0400 Subject: [PATCH] Fix group modal search persistence when closing the modal (#8525) GitOrigin-RevId: 3b3dcdaa09439715e66cfbf522f397c6ae2c930c --- .../web/frontend/js/features/plans/group-plan-modal/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/plans/group-plan-modal/index.js b/services/web/frontend/js/features/plans/group-plan-modal/index.js index 0c2ce8aa24..ec4cea4f50 100644 --- a/services/web/frontend/js/features/plans/group-plan-modal/index.js +++ b/services/web/frontend/js/features/plans/group-plan-modal/index.js @@ -60,7 +60,8 @@ modalEl history.replaceState(null, document.title, path + '#groups') }) .on('hidden.bs.modal', function () { - history.replaceState(null, document.title, window.location.pathname) + const path = `${window.location.pathname}${window.location.search}` + history.replaceState(null, document.title, path) }) function showGroupPlanModal() {