Fix authentication issue on the search results page