I have a html file in the style library which I am loading onto a content editor webpart using content link
Currently i have used,
/sites/sitename/style library/html/file.htm
But here the sitename is hard coded, and it will not work when exported to other site collections.
I also thought about using
../style library/html/file.htm
But this might not work for pages in subsites or pages hosted in sub folders in a document library
Is there a more generic way to point to style library of site collection?
something like ~sitecollection