Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Ajax Search Pro – remembering after back button › Reply To: Ajax Search Pro – remembering after back button
September 2, 2021 at 2:56 pm
#34508
Keymaster
I think so. I will add an event to the document.body, which you can trigger to memorize the state:
asp_memorize_state_{search_ID}
So you can trigger this event before the redirection (when clicking the button), like so:
document.body.dispatchEvent(new Event('asp_memorize_state_1'));
..then after redirection clicking the back button will restore the search state.