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.
This commit is contained in:
Aaron Powell
2026-02-03 11:27:45 +11:00
parent eb66c2b1d2
commit 79b5c649b5

View File

@@ -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(),
});
}