Skip to content

Node.js based forum software built for the modern web

auto-redirect to SSO flow should work in subfolders too

Julian Lam2f2eb1457dd3
diff --git a/src/controllers/index.js b/src/controllers/index.js
index 8bf4a798e4..2671dc0657 100644
--- a/src/controllers/index.js
+++ b/src/controllers/index.js
@@ -132,7 +132,7 @@ Controllers.login = function (req, res, next) {
external: data.authentication[0].url
});
} else {
- return res.redirect(data.authentication[0].url);
+ return res.redirect(nconf.get('relative_path') + data.authentication[0].url);
}
}
if (req.uid) {