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