From 536591f8426883ea8df875e90a56e4b07f801e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 30 Mar 2021 20:10:14 -0400 Subject: [PATCH] fix: #9447, include query params in previousUrl --- public/src/ajaxify.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 763e2085f4..202343e3c5 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -46,7 +46,9 @@ ajaxify = window.ajaxify || {}; apiXHR.abort(); } - app.previousUrl = !['reset'].includes(ajaxify.currentPage) ? window.location.pathname.slice(config.relative_path.length) : app.previousUrl; + app.previousUrl = !['reset'].includes(ajaxify.currentPage) ? + window.location.pathname.slice(config.relative_path.length) + window.location.search : + app.previousUrl; url = ajaxify.start(url);