Search code examples
imagemagentomediawysiwygbroken-links

Why wysiwyg plugin in magento gets me broken links?


When I try to insert an image to the wysiwyg editor in Magento it places the right variable of the image path in the media directory.

But, wysigyg doesn't find the right path/url, example:

I inserted:

<p><img src="{{media url="wysiwyg/blog/Screen_Shot_2013.png"}}" alt="" /></p>

But, in the preview it gets me the next broken src:

<img src="https://localhost/index.php/admin/cms_wysiwyg/directive/___directive/e3ttZWRpYSB1cmw9Ii93eXNpd3lnL2Jsb2cvU2NyZWVuX1Nob3RfMjAxMy5wbmcifX0,/key/1a966015551bf00867319d23c9914b48/" alt="" data-mce-src="https://localhost/index.php/admin/cms_wysiwyg/directive/___directive/e3ttZWRpYSB1cmw9Ii93eXNpd3lnL2Jsb2cvU2NyZWVuX1Nob3RfMjAxMy5wbmcifX0,/key/1a966015551bf00867319d23c9914b48/">

And of course, it doesn't show the image. Also this happens with links and other media files.


Solution

  • System -> Configuration -> General -> Content Management -> Use Static URLs for Media Content in WYSIWYG for Catalog to Yes