Skip to content

Commit

Permalink
fix: make HTTP Basic Auth aware of path-prefix (#8789)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbntt authored Dec 5, 2024
1 parent 028c807 commit c7f741d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/modules/server/routes/get-login-basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit c7f741d

Please sign in to comment.