Fix relative/abs url resolution