Fix full URL when getting metadata