From e62908eae9a3bdab1b37feb914fb76535da2c98e Mon Sep 17 00:00:00 2001 From: Szymon Nowicki Date: Sun, 9 Jun 2024 21:08:21 +0200 Subject: [PATCH] fix: proper crates.io link --- server/lib/searchCrates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`, }); /**