I’m having an issue with Safari and history. I would post code, but I’m not quite sure which part of my code to post, and I do not think that posting over 4,000 lines of code will help anyone.
The problem is this:
- Do a search without any refinements/filters (land on instantsearch.js search results page)
- Add a
- Choose one of the results (this leads to a new page)
- Press “back” in the browser (returns us back to search results)
- The results and
statedo not contain the query, but it can be found in the URL as expected
Refreshing the page fixes the issue. This does not happen every time, but often enough. It seems to only happen with the
query parameter. And it only happens in Safari. If I
routeState, I see that in Chrome/Firefox it is only called once: on the initial page load. But for Safari, it is called three times. And only the first time contains
I realize that this is limited information, especially without any code samples. But I’m hoping that someone here has dealt with a similar issue, or is familiar with the differences of Safari history vs other browsers, or can point me in a direction to investigate this further.