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

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2011.12, 2012.1, 2012.2, 4.7.0-dev
    • Fix Version/s: None
    • Labels:
      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

            Assignee:
            dp@ez.no Damien Pobel (eZ)
            Reporter:
            dpobel Damien Pobel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: