mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-10 04:36:38 +00:00
fix: make HTTP Basic Auth aware of path-prefix (#8789)
This commit is contained in:
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
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user