Issue: hard coded image path in CSS files

Issue: hard coded image path in CSS files

tiendqtiendq Posts: 9Questions: 0Answers: 0

I just downloaded DataTables as a single file and found that image paths are hard coded with version number. Could we use relative path as usual?

For example (datatables.css):

table.dataTable thead .sorting {
background-image: url("DataTables-1.10.12/images/sort_both.png");
}

why is it not "images/sort_both.png"?

Thanks,

Replies

  • allanallan Posts: 63,810Questions: 1Answers: 10,516 Site admin
    edited July 2016

    That is still relative, but the target image just happens to be in the DataTables-1.10.12 directory.

    The reason for this is that you are using the download builder to create the download and since the CSS file is at the top level, it must dig into that directory. The download builder doesn't attempt to reorganise the files into a flatter structure. It is something it might do in future, but its quite a difficult task.

    If you want it without the version in the path, download the release packages and move the files around to suit your requirements.

    Allan

This discussion has been closed.