Setting: When lightbox2 is enabled for the automatic image handling of the image nodes and when the "image trigger size" is set to "Thumbnail".

Problem: Clicking the "Thumbnail" link on any image node will not open the expected node/[nid]?size=thumbnail page but trigger a lightbox trying to display the image thumbnail instead. And, on a multilingual site, the triggered lightbox won't be able to display the thumbnail because the language path prefix (e.g. "en", "zh-hans", etc.) is incorrectly added to the file path to the thumbnail.

Previous Version: This problem doesn't exist in lightbox2-6.x-1.8; I've reverted to lightbox2-6.x-1.8 because of this.

Comments

Ginko’s picture

The same issue occurs when the clean-URL handling is disabled.

The hook_link_alter() function of lightbox2.module generates a link with this kind of path: http://domain.name.org/?q=sites/files/image/image.thumbnail.jpg instead of http://domain.name.org/sites/files/image/image.thumbnail.jpg.

Treidge’s picture

Same here, i have multilingual site and if i click in Image node link that supposed to show image in Lightbox ( Lightbox trigger ) - image can't be displayed because of language path prefix ( link looks like http://example.com/ru/images/test.jpg ). Is anyone know how to fix this?

Gilneas’s picture

I think I do have a similar problem here with my site.
After installing lightbox every click leads to a lightbox opening the picture with a litte symbol for a missing picture. The website is no longer operable.

stella’s picture

Category: bug » support
Status: Active » Fixed

@hazart, @Ginko - that's by design, though if you turn off automatic image handling, those links will work as before

@Treidge - that's a different issue that I think is now fixed. If not, please open a new issue with more details.

@Gilneas - duplicate of #411162: Problem with 'automatic image URL re-formatting' with jQuery 1.3.x

Gilneas’s picture

This issue seems to be fixed in the latest stable release of lightbox2.
Installed new version and this the handling of nodes was correct.

Status: Fixed » Closed (fixed)

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