Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19233

CSS packer badly rewrites images url when an extension CSS uses an image from eZ Publish

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • 2011.12, 2012.1, 2012.2, 4.7.0-dev
    • None

    Description

      If a CSS stylesheet is placed in an extension and makes use of an image from an eZ Publish design, the packer generates a wrong URL while packing the CSS files.

      Example:
      extension/ezautosave/design/admin2/stylesheets/preview.css

      #content-preview.error .error
      {
      background:#ffdede url(../../../../../design/admin2/images/message-error.gif) 15px center no-repeat;
      }
      

      will result in var/ezflow_site/cache/public/stylesheets/foobar_all.css

      #content-preview.error .error
      {
      background:#ffdede url(//design/admin2/images/message-error.gif) 15px center no-repeat;
      }
      

      while it should be

      #content-preview.error .error
      {
      background:#ffdede url(/design/admin2/images/message-error.gif) 15px center no-repeat;
      }
      

      Attachments

        Activity

          People

            dp@ez.no dp@ez.no
            dpobel dpobel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: