Fix badge links in the search results.