blueswen / mkdocs-glightbox

A MkDocs plugin supports image lightbox (zoom effect) with GLightbox.
https://blueswen.github.io/mkdocs-glightbox/
MIT License
115 stars 14 forks source link

New version 0.4.0 causes problem with lightbox #41

Open Laserlicht opened 1 month ago

Laserlicht commented 1 month ago

Has to revert to older version (0.3.7): https://github.com/vcmi/VCMI.eu/pull/34

Because the lightbox only works for cached images. If you open a uncached page: When you click on image you will see the spinner forever an the image isn't loading.

Now, after revert it's working just fine again.

Web console also generates an error:

Uncaught TypeError: URL constructor:  is not a valid URL.
    Xa index.ts:110
    i index.ts:301
    RxJS 7
12 [index.ts:110:6](https://vcmi.eu/assets/javascripts/src/templates/assets/javascripts/integrations/instant/index.ts)

It seems a href url is unset.

I'm not sure if this bug is coming from this library. Or from https://github.com/squidfunk/mkdocs-material by @squidfunk