WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Shadowbox JS] Protocol-relative URLs break the lightbox.

[Plugin: Shadowbox JS] Protocol-relative URLs break the lightbox.

  • fwchapman
    Participant

    @fwchapman

    I like your lightbox media viewer so much that I use it on all my WordPress websites! I just noticed a strange quirk: if I express my image URL in relative form like this

    mypath/myfile.jpg

    or in fully specified absolute form like this

    http://mydomain.com/mypath/myfile.jpg

    the lightbox displays my linked image when I click on the displayed image; on the other hand, if I use a protocol-relative form of the URL like this

    //mydomain.com/mypath/myfile.jpg

    the lightbox does nothing, and my browser ends up displaying the linked image when I click on the displayed image.

    I’m going to call this a bug rather than a feature. 🙂 I was mystified and very frustrated until I figured this out. Could you please fix this in a future release?

    Thanks very much,

    Fred Chapman
    [ Signature moderated. ]

    http://wordpress.org/extend/plugins/shadowbox-js/

  • The topic ‘[Plugin: Shadowbox JS] Protocol-relative URLs break the lightbox.’ is closed to new replies.