8000 fix redirection · JavaScriptExpert/kue@052fee9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 052fee9

Browse files
committed
fix redirection
1 parent 2241c8a commit 052fee9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/http/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ app.post('/job', provides('json'), express.bodyParser(), json.createJob);
6565
// routes
6666

6767
app.get('/', function (req, res) {
68-
res.redirect('active')
68+
// res.redirect('active')
69+
(app.path() === '/') ? res.redirect('/active') : res.redirect('active');
6970
});
7071
app.get('/active', routes.jobs('active'));
7172
app.get('/inactive', routes.jobs('inactive'));

0 commit comments

Comments
 (0)
0