Insert module has inserted my uploaded image with two bugs:

<a href="http://www.example.com/files/foo.png"  class="colorbox colorbox-insert-image" rel="gallery-all"><img typeof="foaf:Image" src="http://www.example.com/files/styles/large/public/foo.png?itok=72jZh0Id" alt=""  class="image-large" /></a>
  • Bug 1: All links are still absolute, but the Use absolute paths checkbox is disabled for sure in the content type field settings. Default insert type is Colorbox large.
  • Bug 2: There is a ?itok=72jZh0Id attached where I have no clue what this is made for, but it's static and this cannot correct in all cases.
  • Bug 3: Several double spaces without a need.
Files: 
CommentFileSizeAuthor
#7 colorbox_insert_absolute_1931114_7.patch5.08 KBfrjo

Comments

Project:Insert» Colorbox
Version:7.x-1.3» 7.x-1.5
Priority:Major» Normal

Looks like you are using Colorbox, which provides its own insert templates, it is probably responsible for bug #1 and #3.

Bug #2 isn't a bug at all, it's a new requirement introduced in Drupal 7.20. See the release notes: http://drupal.org/drupal-7.20-release-notes

Look like I need to update the Insert template in Colorbox with the new features that has been added to the Insert module lately.

Will try to make time for that in the coming week.

Version:7.x-1.5» 7.x-2.3

Title:Insert relative is brokenInsert integration needs to include "itok" query string for Drupal 7.20 and later

Updating title for descriptiveness.

The more important here is that the paths are not relative to the webroot and causing several troubles like warnings in SSL sections.

Title:Insert integration needs to include "itok" query string for Drupal 7.20 and laterURLs not inserted with relative paths
Version:7.x-2.3» 7.x-2.x-dev
Priority:Normal» Major

Status:Active» Needs review
StatusFileSize
new5.08 KB

Please test this patch. I have attempted to copy over all the new functionality from version 7.x-1.3 of the Insert module.

It seems the img tag (thumbnail) now has a relative source, but the a href tag still has an absolute path to the colorbox image.

Issue summary:View changes

Updated issue summary.

Issue summary:View changes
Status:Needs review» Fixed

I can confirm #8. $url is a relative path in Version 7.x-2.5 but $path still is an absolute path to the image.

Status:Fixed» Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.