When adding new image to my site using Img_Assist, those images are referenced with absolute path.
eg: http://localhost:8888/sites/CMS-Test/drupal-4.7/?q=/system/files/images/image.jpg

I would would like to make this path relative something like ?q=/system/files/images/image.jpg. I saw some people having relative path so it should be possible.

Else when importing image in page with TinyMCE, I got always the absolute path. That is a problem if I want to change the server. And it will happen soon.

Ronan

Comments

pathscollide’s picture

I have this problem too. I just moved my site up from a subdirectory, and after changing the base url in settings.php, the only thing that was broken was the paths created by img_assist. Luckily I don't have a whole lot of them, but that's set to change -- and if I have to move my site again, it will be hellish to change them all by hand.

I should specify that I'm using "HTML code" mode and not "Filter Tag" mode -- if that makes any difference...

Anyone have any ideas as to how to make img_assist use relative and not absolute paths?