From cc69e762007030300ba6bfaff781566be3689ffa Mon Sep 17 00:00:00 2001 From: noerw Date: Fri, 6 Jan 2017 18:18:55 +0100 Subject: [PATCH] redirect /admin properly (fix #3114) --- src/node/hooks/express/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/hooks/express/admin.js b/src/node/hooks/express/admin.js index 70539f0c4..0884cde56 100644 --- a/src/node/hooks/express/admin.js +++ b/src/node/hooks/express/admin.js @@ -2,7 +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/'); + if('/' != req.path[req.path.length-1]) return res.redirect('./admin/'); res.send( eejs.require("ep_etherpad-lite/templates/admin/index.html", {}) ); }); }