Node.js based forum software built for the modern web
Also add relative_path to destination
Charles5f1b1ad2bf4e
diff --git a/src/routes/authentication.js b/src/routes/authentication.jsindex 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') + '/');}