Fixes delete link in search result, broken after recent changes to search results, Closes #749