From 1859fef315d3dfec2e7c4a137247c7b104c1304d Mon Sep 17 00:00:00 2001 From: Jacob Bare Date: Fri, 12 Nov 2021 13:17:27 -0600 Subject: [PATCH] Fix Express redirect deprecation notice --- .../middleware/strip-olytics-param.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/marko-web-omeda-identity-x/middleware/strip-olytics-param.js b/packages/marko-web-omeda-identity-x/middleware/strip-olytics-param.js index 1f4cec7a5..b3f3180df 100644 --- a/packages/marko-web-omeda-identity-x/middleware/strip-olytics-param.js +++ b/packages/marko-web-omeda-identity-x/middleware/strip-olytics-param.js @@ -11,7 +11,7 @@ module.exports = () => (req, res, next) => { if (idxUserExists && incomingEncId && incomingEncId !== currentEncId) { const params = (new URLSearchParams(q)).toString(); const redirectTo = `${req.path}${params ? `?${params}` : ''}`; - res.redirect(redirectTo, 302); + res.redirect(302, redirectTo); } else { next(); }