mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-04 20:08:02 +00:00
fix: make HTTP Basic Auth aware of path-prefix (#8789)
This commit is contained in:
@@ -25,7 +25,7 @@ exports.handler = function(request,response,state) {
|
|||||||
response.end();
|
response.end();
|
||||||
} else {
|
} else {
|
||||||
// Redirect to the root wiki if login worked
|
// 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,{
|
response.writeHead(302,{
|
||||||
Location: location
|
Location: location
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user