Selaa lähdekoodia

Fix group modal search persistence when closing the modal (#8525)

GitOrigin-RevId: 3b3dcdaa09439715e66cfbf522f397c6ae2c930c
M Fahru 4 vuotta sitten
vanhempi
sitoutus
9e91685445

+ 2 - 1
services/web/frontend/js/features/plans/group-plan-modal/index.js

@@ -60,7 +60,8 @@ modalEl
     history.replaceState(null, document.title, path + '#groups')
     history.replaceState(null, document.title, path + '#groups')
   })
   })
   .on('hidden.bs.modal', function () {
   .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() {
 function showGroupPlanModal() {