auto redirect to search