From f86fd197f13e0a894e40d2ebf0fa8070713102a6 Mon Sep 17 00:00:00 2001 From: josephine Date: Wed, 12 Aug 2026 14:18:25 +0200 Subject: [PATCH] fix(client): handle uri encode special characters --- apps/client/src/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/server.ts b/apps/client/src/server.ts index 371f226..d75613b 100644 --- a/apps/client/src/server.ts +++ b/apps/client/src/server.ts @@ -65,7 +65,7 @@ const server = Bun.serve({ }, "/*": async (req) => { try { - const path = new URL(req.url).pathname; + const path = decodeURIComponent(new URL(req.url).pathname); const file = Bun.file(resolveWebDir(path)); if (!(await file.exists())) @@ -110,7 +110,7 @@ const server = Bun.serve({ }, "/game/*": async (req) => { try { - const path = new URL(req.url).pathname.replace("/game", ""); + const path = decodeURIComponent(new URL(req.url).pathname.replace("/game", "")); const file = Bun.file(join(dir, path)); if (!(await file.exists())) {