Make flash messages display properly in search results