patch meta_search and add the search query back into scope links