mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-22 04:21:02 -08:00
fix: make HTTP Basic Auth aware of path-prefix (#8789)
This commit is contained in:
parent
028c80782d
commit
c7f741d4f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue