From 048e3e4193ff7b2bd01d8073fcfd2a697147ee03 Mon Sep 17 00:00:00 2001 From: Azim Gadzhiagayev Date: Fri, 25 Sep 2015 10:42:53 +0200 Subject: [PATCH] fix redirection issue #715 --- lib/http/index.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/http/index.js b/lib/http/index.js index 6b81bbd8..b300e03f 100755 --- a/lib/http/index.js +++ b/lib/http/index.js @@ -66,16 +66,7 @@ app.post('/job', provides('json'), bodyParser.json(), json.createJob); // routes -app.get('/', function( req, res ) { - var context = app.mountpath || req.baseUrl; - - // Strip trailing slash from context - if( context && context[context.length - 1] === '/' ) { - context = context.substring(0, context.length - 1); - } - - res.redirect(context + '/active'); -}); +app.get('/', routes.jobs('active')); app.get('/active', routes.jobs('active')); app.get('/inactive', routes.jobs('inactive'));