Fix relative path

This commit is contained in:
yacchin1205 2024-08-28 21:25:21 +09:00
parent 2ccffa98f6
commit 565ed94bcf

View file

@ -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 {