This project has moved and is read-only. For the latest updates, please go here.

css image path issue in scorm package


Issue in File Content.aspx.cs there seems to be an issue with image paths in css files. if div have image as background path then they load with the name of the file in it. is the images are under images/imagename.png then the path shows up as cssFileName.css/images/imagename.png this is an issue. is it because of some incomplete code?

if SP2013

        // For .css files strip off the final / which we have put in to get round SP2013 stopping them
        if (contentPath != null)
            if (contentPath.Length > 4)
                if (contentPath.Substring(contentPath.Length - 5).ToUpperInvariant() == ".CSS/")
                    contentPath = contentPath.Substring(0, contentPath.Length - 1);