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

Carousel: Closing Carousel view goes back to Previous page #6244

Open
jeherve opened this issue Feb 1, 2017 · 17 comments
Open

Carousel: Closing Carousel view goes back to Previous page #6244

jeherve opened this issue Feb 1, 2017 · 17 comments
Labels
[Feature] Carousel A fullscreen modal appearing when clicking on an image in a gallery or tiled gallery. [Pri] Normal [Type] Bug When a feature is broken and / or not performing as intended

Comments

@jeherve
Copy link
Member

jeherve commented Feb 1, 2017

Steps to reproduce the issue

  1. On a new site, install the "Travern" theme from the WordPress.org theme directory (Themes > Add New).
  2. Create a gallery on a site where Jetpack and the Carousel module are active.
  3. Load your site's home page.
  4. Navigate to the post / page where you've added the gallery.
  5. Click on an image to load the Carousel view.
  6. Click on the "x" icon to close the carousel view.
  7. Instead of just closing the carousel view, the icon will act as if you had clicked on the browser's back button.

Reported here:
https://wordpress.org/support/topic/tiled-gallery-problems-with-nikkon-theme

@jeherve jeherve added [Feature] Carousel A fullscreen modal appearing when clicking on an image in a gallery or tiled gallery. [Pri] Normal [Type] Bug When a feature is broken and / or not performing as intended labels Feb 1, 2017
@jeherve jeherve added this to the Not Currently Planned milestone Feb 1, 2017
@andykay
Copy link

andykay commented Feb 9, 2017

I'm getting the same behaviour using a customised Bones theme - http://dev.robscottphotography.com/

Also if I increase the page load time by setting Photon compression to 100, clicking on an image quickly takes me to the attachment page rather than loading the carousel.

The rest of the behaviour is as above - opening the carousel before the images have loaded causes the close button to act as the browsers back button.

@jeherve
Copy link
Member Author

jeherve commented Mar 7, 2017

This may be linked to #5168.

This is a bigger problem when accessing Carousel images directly:

  1. Load a Carousel View in your browser right away: https://jeremy.hu/introducing-watson/#jp-carousel-1852
  2. Click on the 'x' icon to leave the Carousel view.
  3. The whole page disappears, as there is no previous page to go to.

@TopoR
Copy link

TopoR commented Apr 10, 2017

Yes, same issue :(

@ghost
Copy link

ghost commented Aug 16, 2017

Same thing here...

@PatrizioRD
Copy link

Me as well, just stumbled upon the same issue.

@brezocordero
Copy link
Contributor

Reported as well here #776598-zen

@designsimply
Copy link

I tested using the steps provided and added a step to adjust Chrome dev tools to simulate a slower connection. Please note browser details and/or any differences in the steps if you have tested and reproduced this bug!

My added step:

  1. Select Chrome > Developer > Developer Tools > Network > Fast 3G.

My results: clicking the "x" to exit the gallery always returned me to the gallery page as expected.

Video: https://cloudup.com/cMFfyL3cTCl

Tested with Firefox 56.0.2 and Firefox 56.0.2 on Mac OS X 10.12.6.

@jeherve jeherve removed this from the Not Currently Planned milestone Nov 8, 2017
@sandymcfadden
Copy link

Reported again in #1121771-zen
I've been able to replicate it consistently in Google Chrome 65 on OS X 10.13.4 on WordPress.com sites when not logged into WordPress.com. My personal site is an example https://sandy.mcfadden.blog/2017/11/04/beautiful-fall-morning/
I still think it has to do with the site not loading completely as it seems ads possibly are not finishing to load. Similar to the site in the user report.

@laurelfulford
Copy link
Contributor

Another report here: #1135929-zen

Similar experience to the one above -- the site doesn't seem to load completely due to the ads, and the issue goes away when the ads are turned off.

@topher1kenobe
Copy link

I have another occurrence, but AdWords is not in play. The site appears to load fully, with no JS errors in the console. https://currentlyaway.com/2018/04/15/a-birthday-inspired-by-donastia/

@chaselivingston
Copy link
Contributor

Also reported in 1240610-zen

@donalirl
Copy link

Another report in #446568-hc

@sirreal
Copy link
Member

sirreal commented Jan 17, 2019

Another report: 1701275-zen (cc: @dericleeyy)

Also noticed when debugging #11152 and related ticket.

@sirreal
Copy link
Member

sirreal commented Jan 17, 2019

There's a very simple way to reproduce this bug:

  • Open a carousel
  • Copy the URL from the browser, it will include a carousel fragment at the end like #jp-carousel-XXXX
  • Open a private (incognito) brower window
  • Paste and navigate to the carousel URL including the hash
  • Close the carousel
  • You will be sent to the "main" private window.

It seems that the conditions here need to be adjusted:

.bind('jp_carousel.afterClose', function(){
if ( window.location.hash && history.back ) {
history.back();
}
last_known_location_hash = '';
gallery.opened = false;
})

@stale
Copy link

stale bot commented Jul 16, 2019

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 stale bot added the [Status] Stale label Jul 16, 2019
@khaoticdude
Copy link

Any update to this? I am still seeing this issue

@jeherve
Copy link
Member Author

jeherve commented Apr 26, 2022

Also reported in #24021.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Carousel A fullscreen modal appearing when clicking on an image in a gallery or tiled gallery. [Pri] Normal [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

No branches or pull requests