trying to fix search redirecting to results