mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-28 02:09:52 +01:00
Also add relative_path to destination
Because the destination url does not include the relative_path
This commit is contained in:
@@ -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') + '/');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user