Skip to content

Commit

Permalink
Fix relative path (#6621)
Browse files Browse the repository at this point in the history
Co-authored-by: yacchin1205 <[email protected]>
  • Loading branch information
yacchin1205 and yacchin1205 authored Aug 31, 2024
1 parent 2ccffa9 commit 8c91ab2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node/hooks/express/specialpages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}));
});


Expand All @@ -342,7 +342,7 @@ exports.expressCreateServer = async (hookName: string, args: any, cb: Function)
req,
toolbar,
isReadOnly,
entrypoint: "../../"+fileNamePad
entrypoint: "../"+fileNamePad
})
res.send(content);
});
Expand All @@ -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 {
Expand Down

0 comments on commit 8c91ab2

Please sign in to comment.