[core] fix: when there was a media link on a media, the media url was partly replaced
merged