I'm using insert module with Use absolute paths setting disabled in all content types.

However the URLs are insered with absolut paths. I think this is a colorbox issue as I'm only using the colorbox templates for insert module.

<a class="colorbox colorbox-insert-image" href="https://www.example.com/sites/default/files/styles/1024x1024/public/content/basic_page/9/foo.jpg?itok=3CARkH0E" rel="gallery-all"><img alt="Foo" class="image-thumbnail" height="100" src="/sites/default/files/styles/thumbnail/public/content/basic_page/9/foo.jpg?itok=Q-JKPIFy" width="72" /></a>

As you can see the iamge is correctly inserted, but the colorbox URL is incorrect and breaks on SSL only sites like mine. The https://www.example.com must not posted into the content.

Comments

hass created an issue. See original summary.

olafski’s picture

Confirmed, that absolute links are still an issue: the Colorbox templates for the Insert module use absolute links, and having absolute links there, it's difficult to deploy a site from dev to production.

I found one related older issue (https://www.drupal.org/project/colorbox/issues/1931114). It got the status "Closed (works as designed)", although people were reporting the issue with absolute URLs wasn't fixed completely.

olafski’s picture

neslee canil pinto’s picture

Status: Active » Closed (cannot reproduce)