Merge pull request #636 from CedricFinance/patch-1

Redirect to / when basePath is empty
This commit is contained in:
Alex 2025-04-16 17:46:30 +03:00 committed by GitHub
commit 8cf4e90bb0
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);
})() })()
); );
} }