From 089518ecfd02dc8fd88deaa382a102746b519fe3 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Thu, 23 May 2024 08:59:32 -0400
Subject: [PATCH] ISTWCMS-6929: removing setting UW from template to preprocess

---
 templates/page/html.html.twig | 3 ---
 uw_fdsu_theme_resp.theme      | 3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/page/html.html.twig b/templates/page/html.html.twig
index d1d6e640..5dbcb437 100644
--- a/templates/page/html.html.twig
+++ b/templates/page/html.html.twig
@@ -27,9 +27,6 @@
   not root_path ? 'front' : 'not-front',
   node_type ? 'node-page node-page--node-type-' ~ node_type|clean_class,
 ] %}
-
-{% set head_title = head_title|merge({'uw': 'University of Waterloo'}) %}
-
 <!DOCTYPE html>
 <html{{ html_attributes }} class="no-js">
 <head>
diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme
index 93c037a4..6c8c007c 100644
--- a/uw_fdsu_theme_resp.theme
+++ b/uw_fdsu_theme_resp.theme
@@ -105,6 +105,9 @@ function uw_fdsu_theme_resp_preprocess_html(&$variables) {
   else {
     $variables['attributes']['class'][] = 'layout-page';
   }
+
+  // Add UW to page title, if not already there.
+  _uw_add_page_title($variables);
 }
 
 /**
-- 
GitLab