I use CKEditor to add multiple images to a node by typing the relative path of the images into the CKEditor image URL box. All the images work fine on local machine but when uploaded to live server all images added this way are not displaying.

Folder path: /sites/mysite/files/myimage/image.jpg

I upload the first image to a node by upload it via "image field" from the same folder, and the image shows both locally and on live server.

Tried the following but to no avail:
1. Change the relative path to absolute when typing into the CKEditor's image URL box, i.e., change "/sites/mysite/files/myimage/image.jpg/" to "http://mysite.com/sites/mysite/files/myimage/image.jpg/". Doesn't work.
2. Installed and configured Pathologic module according to documentation, and the module worked fine. It basically changed the relative url to absolute url automatically so in my case it didn't solve the problem.

Days of research and frustration...I would be very much appreciated if someone could shed a light and lend me a hand on this issue.

CommentFileSizeAuthor
Capture.JPG47.68 KBStone Liu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Stone Liu’s picture

Issue summary: View changes
thomaswalther’s picture

I inserted an image with the image-insert button.

The result I see in the code is:
<p><img alt="X" data-align="center" data-entity-type="" data-entity-uuid="" height="255" src="/sites/default/files/content/myimage.png" width="536" /></p>

If I go on the "german" (main lang) site on /de the url of the img also have the /de prefix. On /en the image got the url with /en before.
The real entered absolute URL "/sites/default/files/content/myimage.png" should work for the core image (before having media).