Unverified Commit 18dd9013 authored by John McLear's avatar John McLear Committed by GitHub
Browse files

Merge pull request #3115 from noerw/redirect_fix

redirect /admin properly (fix #3114)
parents 83ce73b7 cc69e762
...@@ -2,7 +2,7 @@ var eejs = require('ep_etherpad-lite/node/eejs'); ...@@ -2,7 +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/'); 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", {}) );
}); });
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment