From fc7e1c383e34bca978e5293f49608704ac354f9e Mon Sep 17 00:00:00 2001 From: Naz Date: Thu, 5 May 2022 17:56:18 +0800 Subject: [PATCH] Added requestURL handling in version mismatch middleware refs https://github.com/TryGhost/Toolbox/issues/292 - We need to pass this data so that emails include this bit of information --- ghost/mw-api-version-mismatch/lib/mw-api-version-mismatch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ghost/mw-api-version-mismatch/lib/mw-api-version-mismatch.js b/ghost/mw-api-version-mismatch/lib/mw-api-version-mismatch.js index f9ea63ce94..021cee1aae 100644 --- a/ghost/mw-api-version-mismatch/lib/mw-api-version-mismatch.js +++ b/ghost/mw-api-version-mismatch/lib/mw-api-version-mismatch.js @@ -5,6 +5,7 @@ const versionMismatchHandler = (APIVersionCompatibilityService) => { await APIVersionCompatibilityService.handleMismatch({ acceptVersion: req.headers['accept-version'], contentVersion: `v${res.locals.safeVersion}`, + requestURL: req.originalURL, userAgent: req.headers['user-agent'] }); }