URL path mapping of CSS resources missing

Bug #912112 reported by Guy K. Kloss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sloecode
Fix Released
Undecided
Unassigned

Bug Description

When deploying Sloecode under a *different* URL path than the default (using WSGI, e. g. with Apache's mod_wsgi), Sloecode does not adapt the paths to resources in CSS files. So, if Sloecode is served under http://example.org/sc/ rather than http://example.org/, certain resources are not found by the running instance.

"Normal" HTML template files use the "h.url(...)" URL rewriting notation to adapt to the URL base correctly, but in CSS files the different CSS specific notation "url(...)" (not using the preceding "h.") does not do so. Therefore, any resources referenced from CSS files cannot be found. This includes referencing further included CSS files, as well as e. g. images (decorations, icons, etc.).

Some of these resources suffering from not being referenced properly are these:

/wrench-pencil.png
/images/help-dialog-background.png
/sc/help/html4css1.css

Related branches

Changed in sloecode:
status: New → Confirmed
milestone: none → 1.1
Changed in sloecode:
assignee: nobody → Thomi Richards (thomir)
status: Confirmed → Fix Committed
Changed in sloecode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.