From fba16c7e577d424720befdba603ba16b644efbb8 Mon Sep 17 00:00:00 2001 From: Simon Whatley Date: Fri, 13 Dec 2024 11:42:57 +0000 Subject: [PATCH] Add page to res.locals --- app/routes.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/routes.js b/app/routes.js index 206b46b46..63a5c7f6a 100755 --- a/app/routes.js +++ b/app/routes.js @@ -18,6 +18,10 @@ router.all('*', (req, res, next) => { res.locals.referrer = req.query.referrer.split(',') } + if (req.query?.page) { + res.locals.page = req.query.page + } + // Only search by the query if there is one // (and get "undefined" instead of "{}" if there is no query) const hasQuery = !_.isEmpty(req.query)