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

CSS links in the DOM are multiplied by new fragments

    Details

      Description

      Reproduction Steps

      1. Start the Liferay bundle and login as Admin 
      2. Create a Basic Web Content
      3. Go to Home
      4. Open up the DOM by pressing F12 (Chrome), make sure to be on the Elements page
      5. In the DOM, search for /o/asset-publisher-web/css/main.css, results: 0
      6. Edit Home→add an Asset PublisherPublish
      7. In the DOM, search for /o/asset-publisher-web/css/main.css, results: 1
      8. Add a Tabs portlet to the page→add an Asset Publisher to each tabPublish
      9. In the DOM, search for /o/asset-publisher-web/css/main.css, results: 25
      10. Go to Design→Fragments
      11. Create a new Collection
        + sign next to COLLECTIONS
      12. Add a new Fragment TestFragment
        +sign under Fragments
      13. Replace the text in the HTML field with the following:
        <div class="fragment_1">
        	<lfr-drop-zone id="dropzone-1"></lfr-drop-zone>
        </div>
        
      1. Return to Home→add TestFragment to the page (no content is needed)→Publish
        In the DOM, search for /o/asset-publisher-web/css/main.css

       Expected Behavior
      There is 1 result.

       Actual Behavior
      There are 30 results.

       Additional Information
      Other CSS files are also loaded multiple times, e.g.:

      /o/site-navigation-menu-web/css/main.css 
      

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            roland.pakai Roland Pákai
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Roland Pákai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              14 weeks, 1 day ago

                Packages

                Version Package
                7.3.X
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.3.6 CE GA7
                Master