From 95c5afe37abe71bc7c5ef9d80434f470b6e6293f Mon Sep 17 00:00:00 2001 From: wonder Date: Thu, 17 Sep 2026 13:34:57 +0800 Subject: [PATCH] fix: remove double .json suffix in question file fetch URL typeFile from meta.question_files already includes .json extension, so appending .json again caused 404 (e.g. code_reading.json.json). --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 4a7f4f6..7b07292 100644 --- a/index.html +++ b/index.html @@ -435,7 +435,7 @@ async function selectTopic(slug) { currentQuestions = []; for (const typeFile of meta.question_files) { - const qRes = await fetch(`${topicPath}/${typeFile}.json`); + const qRes = await fetch(`${topicPath}/${typeFile}`); const qData = await qRes.json(); currentQuestions.push(...qData.questions); }