Skip to content

Node.js based forum software built for the modern web

Add relative_path to authentication redirects

Charlesf26a250b0198
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'
}));
}
}