mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
redirect /admin to /admin/ so that the relative links work
This commit is contained in:
parent
babb33d825
commit
5fe60e7221
1 changed files with 1 additions and 0 deletions
|
@ -2,6 +2,7 @@ var eejs = require('ep_etherpad-lite/node/eejs');
|
||||||
|
|
||||||
exports.expressCreateServer = function (hook_name, args, cb) {
|
exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
args.app.get('/admin', function(req, res) {
|
args.app.get('/admin', function(req, res) {
|
||||||
|
if('/' != req.path[req.path.length-1]) return res.redirect('/admin/');
|
||||||
res.send( eejs.require("ep_etherpad-lite/templates/admin/index.html", {}) );
|
res.send( eejs.require("ep_etherpad-lite/templates/admin/index.html", {}) );
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue