diff --git a/uw_dashboard.module b/uw_dashboard.module index 65ec48282a285c1f6e9c722138bca5f7baf8d219..743e88495f3004b8333e90de631cfa8bcea60534 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')