ensure urls are relative