Skip to content

Commit 79b5c64

Browse files
committed
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.
1 parent eb66c2b commit 79b5c64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eng/generate-website-data.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ function generateSearchIndex(
579579
id: skill.id,
580580
title: skill.title,
581581
description: skill.description,
582-
path: skill.path,
582+
path: skill.skillFile,
583583
searchText: `${skill.title} ${skill.description}`.toLowerCase(),
584584
});
585585
}

0 commit comments

Comments
 (0)