Closed (works as designed)
Project:
Colorbox
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2011 at 18:13 UTC
Updated:
26 Mar 2013 at 21:32 UTC
Jump to comment: Most recent file
Comments
Comment #1
fasdalf@fasdalf.ru commentedIt was easy. In the end of colorbox.theme.inc add colorbox_relative_url()
and change template_preprocess_colorbox_insert_image()
Comment #2
frjo commentedI will follow the changes in the Insert module.
Comment #3
soulfroysThis is my "backport" (attached) based on comment #1 for the last 6.x-1.x-dev. Needs lots of love (Drupal/PHP newbie) but solves my problem. My scenario: my site was installed in a subdirectory and I need the url relative to the root.
Thanks @fasdalf@fasdalf.ru!
Comment #4
tahiticlic commentedAny chance that this fix will be commited ?
BTW, you need to add base_path() to the trimmed URL in order this to work in all cases.