Skip to content

Commit eceb3c0

Browse files
committed
fix(configurator): Correct path construction for loading mode data
1 parent 4396199 commit eceb3c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/mode_configurator/src/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async function fetchModes() {
8888
// Function to fetch version metadata
8989
async function fetchVersions() {
9090
try {
91-
const versionsResponse = await fetch('/roo-commander/mode_versions.json');
91+
const versionsResponse = await fetch('/mode_versions.json'); // Fetch from root relative to public dir
9292
if (!versionsResponse.ok) {
9393
throw new Error(`HTTP error fetching versions! status: ${versionsResponse.status}`);
9494
}
@@ -115,11 +115,11 @@ function updateTemplatePath() {
115115
if (!selectedVersion.value || !selectedVersion.value.path) {
116116
console.error("Cannot update template path: selected version or its path is missing.", selectedVersion.value);
117117
// Set a default or handle the error appropriately - maybe point to the first available path?
118-
templateBasePath.value = modeVersions.value.length > 0 ? `/roo-commander/${modeVersions.value[0].path}/` : ''; // Fallback or handle error
118+
templateBasePath.value = modeVersions.value.length > 0 ? `/${modeVersions.value[0].path}/` : ''; // Fallback or handle error - Removed /roo-commander/ prefix
119119
return;
120120
}
121121
// Use the path directly from the version object
122-
templateBasePath.value = `/roo-commander/${selectedVersion.value.path}/`;
122+
templateBasePath.value = `/${selectedVersion.value.path}/`; // Use root-relative path - Removed /roo-commander/ prefix
123123
}
124124
125125
// Handle version selection change

0 commit comments

Comments
 (0)