diff --git a/src/routes/authentication.js b/src/routes/authentication.js index 7c28602860..39b0a7f51a 100644 --- a/src/routes/authentication.js +++ b/src/routes/authentication.js @@ -150,8 +150,8 @@ })); app.get(strategy.callbackURL, passport.authenticate(strategy.name, { - successRedirect: '/', - failureRedirect: '/login' + successRedirect: nconf.get('relative_path) + '/', + failureRedirect: nconf.get('relative_path') + '/login' })); } }