From 5f1b1ad2bf4e58f437be1f4540052fc3ac98b84d Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 6 Jun 2014 18:36:02 +0700 Subject: [PATCH] Also add relative_path to destination Because the destination url does not include the relative_path --- src/routes/authentication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') + '/'); }