Skip to content

Commit f4d2f31

Browse files
committed
Fix vicutil's paths
1 parent 0fd8a85 commit f4d2f31

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

index.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -561,10 +561,9 @@ <h2 id="problems-title"></h2>
561561
// For vicutils, look for generated .html files
562562
for (const item of items) {
563563
if (item.type === 'file' && item.name.endsWith('.html')) {
564-
const baseName = item.name.replace('.html', '');
565564
problems.push({
566-
name: baseName,
567-
displayName: baseName.replace(/_/g, ' '),
565+
name: item.name, // Keep the full filename
566+
displayName: item.name.replace('.html', '').replace(/_/g, ' '),
568567
type: 'html',
569568
hasPage: true,
570569
hasHtml: true,
@@ -714,7 +713,7 @@ <h2 id="problems-title"></h2>
714713

715714
if (problem.hasHtml && problem.htmlFiles.length > 0) {
716715
if (platform === 'vicutils') {
717-
item.onclick = () => window.location.href = `${platform}/${problem.htmlFiles[0].name}`;
716+
item.onclick = () => window.location.href = `${platform}/${problem.name}`;
718717
} else {
719718
item.onclick = () => window.location.href = `${platform}/${problem.name}/${problem.htmlFiles[0].name}`;
720719
}

0 commit comments

Comments
 (0)