From 4a35586882087ca746fa77938d320f90d3f5dd5d Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Tue, 16 Jan 2024 11:23:57 -0500 Subject: [PATCH] use fetch --- static/functions/_middleware.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/functions/_middleware.js b/static/functions/_middleware.js index 90efe51..0b092aa 100644 --- a/static/functions/_middleware.js +++ b/static/functions/_middleware.js @@ -13,8 +13,8 @@ async function handle_keys_request(context) { url.pathname = '/keys' + url.pathname; } - // Redirect - return Response.redirect(url, 302); + // Transparent redirect + return fetch(url); } // Otherwise, continue the request chain