diff --git a/services/web/app/src/Features/Project/ProjectListController.js b/services/web/app/src/Features/Project/ProjectListController.js index e4e50f73d7..318533e68d 100644 --- a/services/web/app/src/Features/Project/ProjectListController.js +++ b/services/web/app/src/Features/Project/ProjectListController.js @@ -440,6 +440,10 @@ async function projectListPage(req, res, next) { ) } + // Get the user's assignment for the Bootstrap 5 split test, which populates + // splitTestVariants with a value for 'bootstrap-5' and allows Pug to read it + await SplitTestHandler.promises.getAssignment(req, res, 'bootstrap-5') + res.render('project/list-react', { title: 'your_projects', usersBestSubscription, diff --git a/services/web/app/views/project/list-react.pug b/services/web/app/views/project/list-react.pug index 870c7997f3..e477725d05 100644 --- a/services/web/app/views/project/list-react.pug +++ b/services/web/app/views/project/list-react.pug @@ -6,6 +6,9 @@ block entrypointVar block vars - var suppressNavContentLinks = true +block vars + - bootstrap5EnabledPage = true + block append meta meta(name="ol-usersBestSubscription" data-type="json" content=usersBestSubscription) meta(name="ol-notifications" data-type="json" content=notifications)