From 79b5c649b5d110d8e7508d23043997ceef77e17a Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Tue, 3 Feb 2026 11:27:45 +1100 Subject: [PATCH] fix: use skillFile path in search index for skills When searching for skills on the homepage, clicking a result would fail to load because the search index stored the folder path (e.g., skills/my-skill) instead of the SKILL.md file path. This caused fetchFileContent() to fail. Changed path property to use skill.skillFile which contains the correct path to the SKILL.md file that can be fetched and displayed in the modal. --- eng/generate-website-data.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/generate-website-data.mjs b/eng/generate-website-data.mjs index fdd14fc0..05a23eec 100644 --- a/eng/generate-website-data.mjs +++ b/eng/generate-website-data.mjs @@ -579,7 +579,7 @@ function generateSearchIndex( id: skill.id, title: skill.title, description: skill.description, - path: skill.path, + path: skill.skillFile, searchText: `${skill.title} ${skill.description}`.toLowerCase(), }); }