From 1a02ad408415dfc55701afa6aab9e0d6ca9fd123 Mon Sep 17 00:00:00 2001 From: Project_IO Date: Mon, 17 Mar 2025 16:01:36 +0900 Subject: [PATCH] fix: fix fetch request uri pathname issue fixed --- src/components/directory/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/directory/index.tsx b/src/components/directory/index.tsx index 29d18fd..f776b8e 100644 --- a/src/components/directory/index.tsx +++ b/src/components/directory/index.tsx @@ -84,7 +84,7 @@ function Readme() { useEffect(() => { async function refresh() { const pathname = location.pathname; - const res = await fetch(`/api/raw/${pathname}${pathname.endsWith("/") ? "" : "/"}README.md`, { + const res = await fetch(`/api/raw${pathname}${pathname.endsWith("/") ? "" : "/"}README.md`, { cache: "no-cache" });