Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-103459

HTML head: meta element with name 'description' duplicates its content

    Details

      Description

      Steps to reproduce:

      1. Add an Asset Publisher in the home page.
      2. Go to 'Configuration' in the Asset Publisher and set it as the default Asset Publisher for the page.
      3. Create a new web content.
      4. Add some text to the 'Summary" field. Ex: 'This is the summary'
      5. Fill the 'Friendly URL' field. Ex: 'my-wc'
      6. Set the Display Page to reference 'Home Page'
      7. Then, in a browser use the friendly URL. Ex: http://localhost:8080/web/guest/-/my-wc
      8. Finally, check the HTML code of the page, locating '<head>' section and '<meta content="..." name="description">' inside. For example, using DevTools.

      Expected behavior:
      Following HTML source if generated:

      <meta content="This is the summary" name="description" >
      

      Observed behavior:
      Following HTML source if generated: please note that summary is twice and one of them is between <p> tags.

      <meta content="<p>This is the summary</p> This is the summary" name="description" >
      

        Attachments

          Activity

            People

            • Assignee:
              jeremy.chen Jeremy Chen
              Reporter:
              sergio.alonso Sergio Alonso
              Participants of an Issue:
              Recent user:
              Jason Pince
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 weeks ago

                Packages

                Version Package
                7.2.X
                7.2.1 CE GA2
                Master