Redirect to / when basePath is empty

This commit is contained in:
Cédric Finance 2025-04-12 17:03:27 +02:00 committed by GitHub
parent ecb79f9943
commit 81afaf3c47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ self.addEventListener("fetch", (event) => {
}); });
}) })
); );
return Response.redirect(basePath, 303); return Response.redirect(basePath || "/", 303);
})() })()
); );
} }