From ad57beca219f1283113ef4a574adaf575653f2b7 Mon Sep 17 00:00:00 2001 From: Jordan Dalby Date: Fri, 13 Dec 2024 10:48:46 +0000 Subject: [PATCH] Use empty string as base_path if not entered --- server/src/routes/oidcRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/routes/oidcRoutes.js b/server/src/routes/oidcRoutes.js index a2641d4..44c1009 100644 --- a/server/src/routes/oidcRoutes.js +++ b/server/src/routes/oidcRoutes.js @@ -116,7 +116,7 @@ router.get('/callback', async (req, res) => { expiresIn: TOKEN_EXPIRY }); - res.redirect(`${process.env.BASE_PATH}/auth/callback?token=${token}`); + res.redirect(`${process.env.BASE_PATH || ''}/auth/callback?token=${token}`); } catch (error) { Logger.error('OIDC callback error:', error); let errorType = 'auth_failed';