I got bitten by this bug when enabling the CDN module. It causes a lot of link to be changed to point to an external site, and I believe that breaks the link that colorbox creates with the l() function call in colorbox.theme.inc's theme_colorbox_imagefield().

Patch to follow.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

badrange’s picture

Title: Links in Colorbox imagefield are broken - url query parameters get urlencoded » Links in Colorbox imagefield are sometimes broken - url query parameters get urlencoded
FileSize
637 bytes

This patch seems to fix the problem for any url-parameters, not just the itok one that I tripped over.

frjo’s picture

Version: 7.x-2.4 » 7.x-2.x-dev
Status: Active » Needs review
badrange’s picture

Title: Links in Colorbox imagefield are sometimes broken - url query parameters get urlencoded » Links in Colorbox imagefield are sometimes broken (for instance while using cdn) - url query parameters get urlencoded
Status: Needs review » Active
FileSize
683 bytes

We are running colorbox and cdn on a site with several translations, and noticed that the image links didn't work on the translated pages even with our patch; this one fixes it somehow.

Vacilando’s picture

Priority: Normal » Major
Status: Active » Needs review

I've run into the same problem here -- and the second patch solved it nicely; thank you, @badrange!

Increasing priority one notch to bring it to the attention of the maintainer.

frjo’s picture

Issue summary: View changes
Status: Needs review » Fixed
frjo’s picture

Part of the just released 7.x-2.5, thanks for the patch!

Status: Fixed » Closed (fixed)

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