search_post: fix redirect to invalid URL