From 9a794b503813c83679ecded016a9ba1f74069fa7 Mon Sep 17 00:00:00 2001 From: kpaxman <kpaxman@uwaterloo.ca> Date: Wed, 19 May 2021 14:49:38 -0400 Subject: [PATCH] ISTWCMS-4874: add layout builder and latest version pages to fixed-width exemptions --- uw_fdsu_theme_resp.theme | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme index cea57b89..585fcb45 100644 --- a/uw_fdsu_theme_resp.theme +++ b/uw_fdsu_theme_resp.theme @@ -108,7 +108,12 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) { // If we are on not on a node, add appropriate classes to show // proper width. - if ($route_match->getRouteName() !== 'entity.node.canonical') { + $route_name = $route_match->getRouteName(); + if (!in_array($route_name, [ + 'entity.node.canonical', + 'entity.node.latest_version', + 'layout_builder.overrides.node.view', + ])) { $variables['classes'][] = 'layout'; $variables['classes'][] = 'uw-contained-width'; } -- GitLab