Pelican-Elegant / elegant

Best theme for Pelican Static Blog Generator
https://elegant.oncrashreboot.com/
MIT License
295 stars 187 forks source link

Photoswipe urls cannot be open by copying URL to another browser #589

Open iranzo opened 4 years ago

iranzo commented 4 years ago

Mandatory Step

Recommended Step

Description

Describe the bug Photoswipe URL's append some parameters to URL to identify gallery, pid, etc

https://next.elegant.oncrashreboot.com/gallery-embed-instagram-post#&gid=2&pid=1

If we copy/paste this url on another browser, not only the picture is not shown 'open', but also, the galleries are not shown in the article

image

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

talha131 commented 4 years ago

This is becasue,

  1. first the page loads
  2. Then the create photo swipe gallery code is triggered
  3. Then photoswipe does its magic

What do you expect to happen when you launch the URL? Why would you do it?

iranzo commented 4 years ago

If I see a picture that might be interesting in a pelican-elegant site, as user/visitor I want to be able to copy/paste/share with my phone or device an URL that will allow receiver to get the same page and picture displayed, i.e. getting the same gallery and picture open

talha131 commented 4 years ago

I see. Right now, I am not sure how it can be fixed. Nonetheless, I have added it to the roadmap.

We probably will have to leverage PhotoSwipe events or create our own.