Reputation: 2677
When I add an image with the WYSIWYG-editor, the image path is to long. I get the following path:
<img src="media url="home/magento/static/media/wysiwyg/people.png"" alt="" />
Instead of:
<img src="media url=wysiwyg/people.png"" alt="" />
When I import the image URL, I get in the WYSIWYG pop-up the following image URL:
The image URL is as follow: https://server.magento.local/index.php/smladmin/cms_wysiwyg/directive/___directive/e3ttZWRpYSB1cmw9ImhvbWUvc2FuaWRpcmVjdC9zdGF0aWMvbWVkaWEvd3lzaXd5Zy9sb2dvLXBpbi5wbmcifX0,/key/acc4e19a8864aa88801f17ea0d3d8b3e/
I think the problem has something to do with the Symlinks? Because it is only on our server, not in our local environment.
How could i solve this issue?
Thanks
Upvotes: 1
Views: 5737
Reputation: 2677
I found the answer in another post: How can I relocate my magento store's media directory?
--
Can add as symbol links, but you will get some problem with WYSIWYG editor in admin panel :)
Need following:
edit /app/code/core/Mage/Cms/Helper/Wysiwyg/Images.php
function getCurrentUrl()
$path = str_replace(Mage::getConfig()->getOptions()->getMediaDir(), '', $this->getCurrentPath());
change to
$path = str_replace(realpath(Mage::getConfig()->getOptions()->getMediaDir()), '', $this->getCurrentPath());
Upvotes: 1