Merge pull request #1615 from ether/fix/admin-relative-links

redirect /admin to /admin/ so that the relative links work
pull/1616/merge
John McLear 2013-03-14 08:01:11 -07:00
commit f0dee2d2ce
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@ var eejs = require('ep_etherpad-lite/node/eejs');
exports.expressCreateServer = function (hook_name, args, cb) {
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", {}) );
});
}