Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20968

"View in your browser" link for mosaico template gives a non initialized title "TITLE"

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.7.16
    • Fix Version/s: None
    • Component/s: CiviMail
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      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);

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              samuelsov Samuel Vanhove
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: