|
|
Subject :Compatibility issues with "System - Cache" on Joomla 1.5.14, CssJsCompress 3.2
<p>Using versions : Joomla 1.5.14 Stable, CssJsCompress 3.2</p>
<p>I have been using SEF and the "System - Cache" plugin together without any problems. I added CssJsCompress 3.2 and mostly it worked excellent, but then I noticed some of my article images were disappearing. After playing around I found the following menu structure and combination causes this problem:</p>
<p>TopMenu (Category/blog) -> SubMenuItem (Article)</p>
<p>First I'll describe how it works with SEF + System Cache, then what happens when CssJsCompress is added.</p>
<p>1. Ensure the SubMenuItem article has an image embedded using the html editor. The image is added with a relative path, i.e. src equals images/stories/foo/bar.png. (I tried typing this as an attribute with the = sign but this editor keeps inserting a leading / in the quoted area!)</p>
<p>2. Browse to TopMenu -> SubMenu. Everything renders well.</p>
<p>3. Inspect the image <img> tag. Notice how the "src" attribute has been rewritten to be absolute.</p>
<p>Now activate CssJsCompress (my configuration does not exclude any components) and clear the System Cache. Perform the above steps 1-3 again.</p>
<p>At step (3), the "src" attribute is now relative. This is a problem because the browser now assembles the "base" url and the relative image path and tries to find the image in a location such as the following:</p>
<p>http://my-domain/top-menu-alias/article-alias/images/stories/foo/bar.png</p>
<p>When I turn off System Cache, and keep on CssJsCompress, there is no problem.</p>
<p>Shouldn't we be able to configure both System Cache and CssJsCompress and have the embedded image src locations resolve correctly? There seems to be some kind of interaction between these components that is causing the image url to remain relative when they are both activated.</p>
<p> </p> |
IP Logged
|
|
Last Edited On: 2009-09-20 01:00:10 By rob_clark for the Reason retyped without quotes to stop editor inserting leading / in example text. |