From 6fef747629e199f3b2bc2ab73240c12dbf0a59d2 Mon Sep 17 00:00:00 2001
From: Kevin Paxman <kpaxman@uwaterloo.ca>
Date: Mon, 21 Oct 2024 15:49:33 -0400
Subject: [PATCH] EXPHR: make the WCMS version link to the release notes list

---
 uw_dashboard.module | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/uw_dashboard.module b/uw_dashboard.module
index 65ec482..743e884 100644
--- a/uw_dashboard.module
+++ b/uw_dashboard.module
@@ -161,11 +161,9 @@ function uw_dashboard_views_pre_execute(ViewExecutable $view) {
  */
 function uw_dashboard_preprocess_page(&$variables) {
   if (\Drupal::routeMatch()->getRouteName() == 'entity.dashboard.canonical') {
-    // Start building the site info string.
-    $string = 'WCMS ';
-
-    // Get the profile version.
-    $string .= \Drupal::service('extension.list.profile')->getList()['uw_base_profile']->info['version'];
+    // Start building the site info string with the version information.
+    $string = 'WCMS version ' . \Drupal::service('extension.list.profile')->getList()['uw_base_profile']->info['version'];
+    $string = Link::fromTextAndUrl($string, Url::fromUri('https://uwaterloo.ca/web-resources/news?tags[90]=90'))->toString();
 
     // Get the website lead(s).
     $query = \Drupal::entityQuery('user')
-- 
GitLab