CMS MADE SIMPLE FORGE

CGExtensions

 

[#12029] CSS URL not appended correctly.

avatar
Created By: Darren Kierman (kierweb)
Date Submitted: Fri May 03 15:50:32 -0400 2019

Assigned To: Robert Campbell (calguy1000)
Version: 1.62.8
CMSMS Version: 2.2.10
Severity: Major
Resolution: None
State: Open
Summary:
CSS URL not appended correctly.
Detailed Description:
Started using {cgjs_render} to speed up my sites, but any url css statement
which begin with a / or a ..   are not working correctly ...

e.g.
#content-wrapper.bg1 { background-image:/images/bg-cat.jpg'); } becomes
#content-wrapper.bg1 { background-image:
url('//www.oaktreeanimals.org.uk/tmp/cache//images/bg-cat.jpg'); }

and in the case of Font Awesome, the url isn't appended at all ...

@font-face{font-family:"Font Awesome 5
Free";font-style:normal;font-weight:400;font-display:auto;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix)
format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2)
format("woff2"),url(../webfonts/fa-regular-400.woff)
format("woff"),url(../webfonts/fa-regular-400.ttf)
format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome)
format("svg")}.far{font-weight:400}


I think the issue is around the "$fix_css_urls" function.


History