labkey context path in CSS files?

LabKey Support Forum (Inactive)
labkey context path in CSS files? Ben Bimber  2011-06-22 05:18
Status: Closed
 
i have a CSS file with this line:

@import url("/labkey/ehr/stylesheet-red-limited.css");

on one server labkey is running as the root webapp, but on another it is not. ideally i'd like to convert the '/labkey' into some sort of substitution akin to <%=contextPath%>. is there anything along these lines that works in CSS?

thanks.
 
 
Matthew Bellew responded:  2011-06-22 09:55
context path is a huge pain. Maybe try adding both paths and see if that works.


@import url("/labkey/ehr/stylesheet-red-limited.css");
@import url("/ehr/stylesheet-red-limited.css");
 
Ben Bimber responded:  2011-06-22 10:22
Not a bad idea. I was hoping to avoid the ugly file not found message though.