Fix history scrolling when navigating search results