Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute paths are not working in hidden gallery: File Not Found Error #77

Open
ninbit opened this issue Mar 15, 2024 · 0 comments
Open

Comments

@ninbit
Copy link

ninbit commented Mar 15, 2024

It seems relative paths don't work in a hidden gallery. None of the below worked:

<div data-toggle="lightbox" data-gallery="hidden-images" data-src="/img/image1.jpg" data-title="Hidden item 1"></div>
<div data-toggle="lightbox" data-gallery="hidden-images" data-src="img/image1.jpg" data-title="Hidden item 1"></div>
<div data-toggle="lightbox" data-gallery="hidden-images" data-src="./img/image1.jpg" data-title="Hidden item 1"></div>
<div data-toggle="lightbox" data-gallery="hidden-images" data-src="image1.jpg" data-title="Hidden item 1"></div>

However, when I tried an absolute path like D:\Folder\MySite\img\image1.jpg, it worked. I think there is an issue with relative paths in hidden gallery. (By the way, I'm using windows)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant