make linked resource paths relative.