fix media link without domain and remove debug