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

This commit is contained in:
John Robinette authored and GitHub committed 2024-12-05 12:31:32 +00:00
1 parent 028c80782d
commit c7f741d4f8
1 file changed
+1 -1
@@ -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
});