File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tools/mode_configurator/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ async function fetchModes() {
8888// Function to fetch version metadata
8989async 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
You can’t perform that action at this time.
0 commit comments