modfiy search.html redirect logic.