biati-digital / glightbox

Pure Javascript lightbox with mobile support. It can handle images, videos with autoplay, inline content and iframes
MIT License
2.01k stars 226 forks source link

Allow lightbox to be opened from link in another lightbox #443

Closed ninetyninew closed 10 months ago

ninetyninew commented 12 months ago

Please describe the feature you want to be implemented. If you have some HTML content in a lightbox it would be useful to be able to open another lightbox (closing the current one open) via the usual lightbox markup.

Explain why the feature is useful We have lightboxes that have content where a user may wish to click through to detail in a different lightbox.

Have you seen it somewhere else? Don't recall.

Additional context When trying this the lightbox link does not work, it amends the URL to add the anchor, but does not close the current lightbox and open the other.

biati-digital commented 10 months ago

This will probably be added in V4