mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 06:03:34 +01:00
Fix relative path (#6621)
Co-authored-by: yacchin1205 <968739+yacchin1205@users.noreply.github.com>
This commit is contained in:
parent
2ccffa98f6
commit
8c91ab280d
1 changed files with 3 additions and 3 deletions
|
@ -324,7 +324,7 @@ exports.expressCreateServer = async (hookName: string, args: any, cb: Function)
|
|||
|
||||
// serve index.html under /
|
||||
args.app.get('/', (req: any, res: any) => {
|
||||
res.send(eejs.require('ep_etherpad-lite/templates/index.html', {req, settings, entrypoint: "/"+fileNameIndex}));
|
||||
res.send(eejs.require('ep_etherpad-lite/templates/index.html', {req, settings, entrypoint: "./"+fileNameIndex}));
|
||||
});
|
||||
|
||||
|
||||
|
@ -342,7 +342,7 @@ exports.expressCreateServer = async (hookName: string, args: any, cb: Function)
|
|||
req,
|
||||
toolbar,
|
||||
isReadOnly,
|
||||
entrypoint: "../../"+fileNamePad
|
||||
entrypoint: "../"+fileNamePad
|
||||
})
|
||||
res.send(content);
|
||||
});
|
||||
|
@ -356,7 +356,7 @@ exports.expressCreateServer = async (hookName: string, args: any, cb: Function)
|
|||
res.send(eejs.require('ep_etherpad-lite/templates/timeslider.html', {
|
||||
req,
|
||||
toolbar,
|
||||
entrypoint: "../../../"+fileNameTimeSlider
|
||||
entrypoint: "../../"+fileNameTimeSlider
|
||||
}));
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue