• Resolved 12sp

    (@sp12)


    Lightbox is adding code to wikimedia link URL’s making it try to load an image rather than going to the link.

    For example this
    <a href="https://commons.wikimedia.org/wiki/File:Sormustinkukka_Digitalis_purpurea_VII_06_C_9497.JPG" target="_blank">Donald Macauley, Wikipedia.org</a>

    is becoming this:
    <a href="https://commons.wikimedia.org/wiki/File:Sormustinkukka_Digitalis_purpurea_VII_06_C_9497.JPG" target="_blank" class="group1 cboxElement">Donald Macauley, Wikipedia.org</a>

    This is what is added class="group1 cboxElement"

    It’s been added to all my old post with that type of link URL. This happened with the last update.

    https://ww.wp.xz.cn/plugins/lightbox/

Viewing 6 replies - 1 through 6 (of 6 total)
  • support-huge-it

    (@support-huge-it)

    Dear 12sp
    That is very normal, your Wikipedia link is .JPG
    It is image type link, so our lightbox react on it and tries to open

    Thread Starter 12sp

    (@sp12)

    It did not use to. It opened to the Wikipedia page. It’s not a true image link, it’s a file that ends with jpg like all the pages/URLs on Wikimedia.

    Thread Starter 12sp

    (@sp12)

    No worries, I switched to a different light box that treats links as links.

    support-huge-it

    (@support-huge-it)

    Not always, the standard Wikipedia link doesn’t have .jpg
    It has .jpg only if you click and open an image from the wiki article, then of course, it is not the article but an image.

    Thread Starter 12sp

    (@sp12)

    Sorry, I mistyped the last message and confused everything. I meant wikimedia/wikicommons I referenced in my original post.

    Page URLs are like this.

    https://commons.wikimedia.org/wiki/File:Sormustinkukka_Digitalis_purpurea_VII_06_C_9497.JPG

    support-huge-it

    (@support-huge-it)

    As I see no matter what page, if it has .JPG the lightbox understands it as image, because in the codes we added some formats which lightbox should take as a picture and open it

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Lightbox is adding code to wikimedia link URL's’ is closed to new replies.