@Oz_lopingJul 14.2020 — #You can save the search query (after .php) in cookie before reloading the page.
function setCookie(key, value, expiry) { var expires = new Date(); expires.setTime(expires.getTime() + (expiry * 24 * 60 * 60 * 1000)); document.cookie = key + '=' + value + ';expires=' + expires.toUTCString(); }
function getCookie(key) { var keyValue = document.cookie.match('(^|;) ?' + key + '=([^;]*)(;|$)'); return keyValue ? keyValue[2] : null; } setCookie('siteSearchParams', window.location.search, 30); window.location.reload(); then after that you can use cookie value to set to search query: