fix: make HTTP Basic Auth aware of path-prefix (#8789)

This commit is contained in:
John Robinette
2024-12-05 12:31:32 +00:00
committed by GitHub
parent 028c80782d
commit c7f741d4f8
@@ -25,7 +25,7 @@ exports.handler = function(request,response,state) {
response.end();
} else {
// Redirect to the root wiki if login worked
var location = ($tw.syncadaptor && $tw.syncadaptor.host)? $tw.syncadaptor.host: "/";
var location = ($tw.syncadaptor && $tw.syncadaptor.host)? $tw.syncadaptor.host: `${state.pathPrefix}/`;
response.writeHead(302,{
Location: location
});