Skip to content

Commit

Permalink
Use empty string as base_path if not entered
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-dalby committed Dec 13, 2024
1 parent 5a6cdb1 commit ad57bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/routes/oidcRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit ad57bec

Please sign in to comment.