From 67475c119a2885178b0ac1500833400c23a4c39f Mon Sep 17 00:00:00 2001 From: Brandon Fowler Date: Fri, 26 Apr 2024 03:33:02 -0400 Subject: [PATCH] Update currentSearch when submitting form --- static/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/index.js b/static/index.js index c307fe6..af79ce5 100644 --- a/static/index.js +++ b/static/index.js @@ -28,7 +28,8 @@ function submitForm(pushState) { .join('&'); if (pushState) { - history.pushState({}, null, (query ? '?' : '') + query); + currentSearch = (query ? '?' : '') + query; + history.pushState({}, null, currentSearch); } if (!query) {