Details
Description
The link for viewing a mailing in the browser (/civicrm/mailing/view?reset=1&id=XX) gives a generic TITLE for the page as seen in this piece of HTML code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="initial-scale=1.0"> <meta name="format-detection" content="telephone=no"> <title>TITLE</title>
In non-mosaico template, the <title> tag seems to be empty which is not very good but at least harmless while in mosaico templates, "TITLE" appears in the <title> tag.
Quick fix in CRM/Mailing/Page/View.php but probably not so good (and doesn't solve the empty title in non-mosaico template) :
$content = str_replace('<title>TITLE</title>', '<title>' . $this->_mailing->subject . '</title>', $content);