fixing redirect in searchResults