change url to the media doc