fixed the linking from the search results in prod mode