diff --git a/src/routes/authentication.js b/src/routes/authentication.js index c22134d176..85461a346c 100644 --- a/src/routes/authentication.js +++ b/src/routes/authentication.js @@ -110,8 +110,8 @@ require('../socket.io').emitUserCount(); plugins.fireHook('filter:register.complete', uid, req.body.referrer, function(err, uid, destination) { - if(destination) { - res.redirect(destination); + if (destination) { + res.redirect(nconf.get('relative_path') + destination); } else { res.redirect(nconf.get('relative_path') + '/'); }