Fix relative urls bug