wakdev / slash-cms

CMS Systems
GNU General Public License v3.0
5 stars 5 forks source link

BUG: ckeditor medias path is wrong when slash in subfolder #55

Closed lowki closed 11 years ago

lowki commented 11 years ago

For example slash is accessible via localhost/slash-cms/ Images are uploaded into the good folder, but the preview doesn't working. The path is set to /media by default, either if it is set to media, it doesn't work too as it is relative to admin path.

wakdev commented 11 years ago

An idea ?

lowki commented 11 years ago

Grab the site_path config param. And inject it there

wakdev commented 11 years ago

I had already added the parameter in the session here : https://github.com/wakdev/slash-cms/blob/master/admin/modules/sla_secure/controller.php#L81

wakdev commented 11 years ago

I tested and I do not see any problem >< You just set the site_path parameter correctly.

wakdev commented 11 years ago

Have you try to turn on and off again ? ^^ (cf : IT Crowd)

lowki commented 11 years ago

I made tests and it seems to work. But on one of my webserver, I have a weird bug, image URL is relative to server root path (ie. /var/www) I asked ckeditor team for futher informations.

wakdev commented 11 years ago

I think you use internet explorer ^^

lowki commented 11 years ago

https://github.com/lowki/slash-cms/commit/47cd31bc0382585eadeba8093d2561f99b6974e8

wakdev commented 11 years ago

Ahah ^^