Added redirects to the search function