The state of the search bar (expanded or not) is supposed to be saved into a local storage variable which is retrieved whenever loading a view that has the search bar in it and it is expanded automatically if it was done previously in any other view, this didn't happen previous to this commit because the variable wasn't being set properly (missing key).