From 9000cccdb4fe719fdb2bacf2aef3921875ca0971 Mon Sep 17 00:00:00 2001 From: New Future Date: Tue, 13 Jan 2026 23:42:06 +0800 Subject: [PATCH] Add redirect option to fetch notFoundUrl --- docs/esa.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/esa.js b/docs/esa.js index 3ce0b37..9c2441f 100644 --- a/docs/esa.js +++ b/docs/esa.js @@ -207,7 +207,7 @@ async function handleRequest(request) { } try { - const notFoundResponse = await fetch(notFoundUrl.toString()); + const notFoundResponse = await fetch(notFoundUrl.toString(), { redirect: 'follow' }); if (notFoundResponse.ok) { // Return 404.html with 404 status code and appropriate headers