WordPress.org

Ready to get started?Download WordPress

Forums

Shadowbox JS
Protocol-relative URLs break the lightbox. (1 post)

  1. fwchapman
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic