From 2f2eb1457dd3f0c27b1a26b979343dd9ec180020 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 14 Nov 2016 14:01:05 -0500 Subject: [PATCH] auto-redirect to SSO flow should work in subfolders too --- src/controllers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {