jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Linking single image to gallery carousel view breaks if clicked > once

Open aheckler opened this issue 9 years ago • 4 comments

To reproduce:

  1. Enable Carousel.
  2. Create a new page with a gallery of images.
  3. Elsewhere on the page, insert a standalone image that links to a carousel URL from the gallery. Example: http://example.com/2016/12/the-permalink-here/#jp-carousel-123.
  4. Publish page and open it.
  5. Click the standalone image. The carousel view of the gallery opens as expected.
  6. Close out of the carousel view.
  7. Click the standalone image again. Nothing happens.

It also "works" in reverse. If you click the gallery first instead of the standalone image, carousel opens. But then if you close it and click the single image, nothing happens.

3004435-t

aheckler avatar Jan 20 '17 16:01 aheckler

This also "works" if you open a new tab and paste the link directly, then when you close the carousel you are redirected back to empty tab.

Steps to reproduce:

  1. Copy the link that opens the carousel, for example ( http://example.com/2016/12/the-permalink-here/#jp-carousel-123 )
  2. Open a new tab and paste the link.
  3. Close the carousel

What I expected

To stay on page when the carousel is closed.

What happened instead

I was redirected back to empty tab.

stoyan0v avatar Jan 30 '17 08:01 stoyan0v

I ran into this second flow today on my personal blog. Going to https://eric.blog/#jp-carousel-8080 and then exiting out of the gallery results in me being taken to an empty tab.

ebinnion avatar Feb 15 '17 09:02 ebinnion

I'm running into this issue exactly as described in the original post.

When the stand alone image is clicked after closing the gallery, the #jp-carousel-123 part of the URL is appended in the address bar and then immediately removed. The browser back button flashes at the same time.

The similar unrequested back navigation to an empty tab mentioned by @Stoyan0v above is also described in #6244

proudfoot avatar Apr 21 '17 20:04 proudfoot

This issue has been marked as stale. This happened because:

  • It has been inactive in the past 6 months.
  • It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

stale[bot] avatar Jul 03 '18 19:07 stale[bot]