From ecbd6cde5881b99f048bdc30019c77ea82eb30a0 Mon Sep 17 00:00:00 2001 From: Rich Lott / Artful Robot Date: Fri, 11 Mar 2022 09:30:40 +0000 Subject: [PATCH] Fix double encoding of document title on Contact view form --- templates/CRM/Contact/Page/View/Summary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Contact/Page/View/Summary.js b/templates/CRM/Contact/Page/View/Summary.js index 1d57d9992c..71c5ca47c5 100644 --- a/templates/CRM/Contact/Page/View/Summary.js +++ b/templates/CRM/Contact/Page/View/Summary.js @@ -193,7 +193,7 @@ function refreshTitle() { var contactName = $('.crm-summary-display_name').text(); contactName = $.trim(contactName); - document.title = $('title').html().replace(oldName, contactName); + document.title = document.title.replace(oldName, contactName); oldName = contactName; } $('#contactname-block').on('load', refreshTitle); -- 2.25.1