fixes relative path construction of url for js and css resources