create link to search results depending on object type