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
Comment #1
Ginko commentedThe same issue occurs when the clean-URL handling is disabled.
The
hook_link_alter()function oflightbox2.modulegenerates a link with this kind of path:http://domain.name.org/?q=sites/files/image/image.thumbnail.jpginstead ofhttp://domain.name.org/sites/files/image/image.thumbnail.jpg.Comment #2
Treidge commentedSame 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?
Comment #3
Gilneas commentedI 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.
Comment #4
stella commented@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
Comment #5
Gilneas commentedThis issue seems to be fixed in the latest stable release of lightbox2.
Installed new version and this the handling of nodes was correct.