When the user searches for a reference, this should create a new history state which includes the search query and the page number.
If I search for something (e.g. "count cost"), click a result, read the page, and then click back, it should display my previous search (on the same page of results). If I click back again, it should take me to any previous result pages, then to the passage I was reading before.
When the user searches for a reference, this should create a new history state which includes the search query and the page number.
If I search for something (e.g. "count cost"), click a result, read the page, and then click back, it should display my previous search (on the same page of results). If I click back again, it should take me to any previous result pages, then to the passage I was reading before.