Redirect to / when basePath is empty
This commit is contained in:
parent
ecb79f9943
commit
81afaf3c47
@ -29,7 +29,7 @@ self.addEventListener("fetch", (event) => {
|
||||
});
|
||||
})
|
||||
);
|
||||
return Response.redirect(basePath, 303);
|
||||
return Response.redirect(basePath || "/", 303);
|
||||
})()
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user