diff --git a/server/lib/searchCrates.js b/server/lib/searchCrates.js index ca31ee8..57cddf6 100644 --- a/server/lib/searchCrates.js +++ b/server/lib/searchCrates.js @@ -17,7 +17,7 @@ const crateToSearchItem = (curr) => ({ excerpt: curr.description.length > 122 ? curr.description.slice(0, 122) + '...' : curr.description, lang: 'en', hostname: 'crates.io', - url: curr.documentation || curr.repository, + url: `https://crates.io/crates/${curr.id}`, }); /**