From bbe342ab6bb81caa7265fa2d8b0d430d5da50ef5 Mon Sep 17 00:00:00 2001 From: Robert Helmer Date: Tue, 4 Apr 2023 09:56:44 -0700 Subject: [PATCH] MNTOR-1512 - backwards-compatibility with breach query (#2967) --- src/controllers/landing.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/controllers/landing.js b/src/controllers/landing.js index d74d6335d..69fe49968 100644 --- a/src/controllers/landing.js +++ b/src/controllers/landing.js @@ -11,6 +11,12 @@ function landingPage (req, res) { nonce: res.locals.nonce } + // Backward-compatibility with Monitor V1, for SEO. + if (req.query.breach) { + const breach = encodeURIComponent(req.query.breach) + return res.redirect(`/breach-details/${breach}`) + } + res.send(guestLayout(data)) }