Hi,
My website, in development, is accessible via http://mywebsite.com/drupal. When it will be final, I'll put it on http://mywebsite/com, without the /drupal.
The problem is that when I put a picture with FCK Editor, the path to the picture is "/drupal/.../...mypicture.jpg". This means the urls will be broken when I'll switch to the final website url.
Of course if I then change the link and remove the /drupal/ thing, the picture do not show.
I though about a drupal issue, but in drupal the other links do start like, for instance, "/sites/..." and not "/drupal/sites/..." so the problem is only with FCK.
Is there anything I can do to fix it and remove this "drupal" from the url?
I have only 3 articles now, to do some testing, so before I really start to put articles I do want this to be fixed.
Thanks
Comments
Comment #1
Jorrit commentedYou can of course do it through a database issue, but it would definitely be nice if FCKeditor would produce relative links. I'm marking this as a feature request.
Comment #2
Julien PHAM commentedI have found a way to fix this. Instead of having my website to http://mydomain.com/drupal, I have put my website at the address http://mydomain.com:88.
So FCK does not put the /drupal/ in the links anymore.
But indeed would be fine if FCK could handle the links the good way to not add /drupal/
Comment #3
vm commentedsimilar report here: http://drupal.org/node/365607
Comment #4
vm commentedComment #5
zoon_unit commentedIs there a fix for this problem?
Is this planned for an upgrade?
Comment #6
vm commentedI took a quick look. Admittedly I'm no genius when it comes to this but I think the fckeditor may be restricted by the library not using relative links. Thus the library may need to be changed...
I suppse the to prove/disprove my 1/2 baked theory would be to put fckeditor on a site that isn't drupal is see if the library uses relative urls when not plugged into drupal.
Comment #7
Jorrit commentedPerhaps something like pathfilter.module could be integrated. You can also look at url_replace_filter.module or pathologic.module. I'll close this for now, as I think pathologic or url_replace_filter are solving this problem.
Comment #8
tatude commentedIMO this should not have been closed. Using relative URLs would eliminate the need for installing another module only for fixing this.
Don't know how to fix it, though. Maybe someone else does?
Comment #9
vm commentedThe problem from what I can tell is that the FCKEditor library doesn't use relative urls, which means that fckeditor in drupal won't either?
Comment #10
Jorrit commentedThat's correct.
Comment #11
truyenle commentedMe too,
Having the same problem. Subscribe to this.
Truyenle
Comment #12
dwalker51 commentedSame problem...