added work around for the way the visual editor handles media urls