Content search: fixed link and removed duplicate code