fix: Fix previw/delivery switch

This commit is contained in:
Khaled Garbaya
2017-10-16 15:52:01 +02:00
committed by Benedikt Rötsch
parent 3f16c4531c
commit f61c13d02e
7 changed files with 25 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ const router = express.Router()
/* GET the about landing page. */
router.get('/', catchErrors(async function (req, res, next) {
const landingPage = await getLandingPage('about', res.locals.currentLocale.code, res.locals.currentLocale.id)
const landingPage = await getLandingPage('about', res.locals.currentLocale.code, res.locals.currentApi.id)
res.render('landingPage', { title: 'About', landingPage })
}))