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

Jorrit’s picture

Title: Problem with the url of pictures » Produce relative URLs
Category: support » feature

You 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.

Julien PHAM’s picture

I 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/

vm’s picture

similar report here: http://drupal.org/node/365607

vm’s picture

Version: 6.x-1.3-beta » 6.x-2.x-dev
Component: Miscellaneous » Code
zoon_unit’s picture

Is there a fix for this problem?

Is this planned for an upgrade?

vm’s picture

I 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.

Jorrit’s picture

Status: Active » Closed (won't fix)

Perhaps 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.

tatude’s picture

IMO 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?

vm’s picture

The 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?

Jorrit’s picture

That's correct.

truyenle’s picture

Me too,

Having the same problem. Subscribe to this.

Truyenle

dwalker51’s picture

Same problem...