WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 3 years ago

#28734 new defect (bug)

Back button doesn't work when in the theme previewer

Reported by: iseulde Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.9
Component: Themes Keywords: needs-patch
Focuses: administration Cc:

Description

To reproduce:

  • Go to theme-install.php;
  • Go to "popular", then to "featured" (clicking the back button here works);
  • Click on "Details and Preview" for a theme;
  • Click next;
  • Click the browser's back button and you'll be pointed to theme-install.php.

Change History (4)

#1 @kraftner
4 years ago

  • Keywords reporter-feedback added

I am not sure if I follow, anyway - does this still happen with 4.0?

#2 @iseulde
4 years ago

  • Keywords needs-patch added; reporter-feedback removed
  • Milestone changed from Awaiting Review to Future Release

Yes, it does. Sometimes the URL updates in the browser, but the screen does not, other times is just goes back to theme-install.php. E.g. when I click the back button, the URL is updated from theme-install.php?theme=x to theme-install.php?browse=popular, but the screen does not update. Another click updates it to theme-install.php, but again nothing happens.

Related: #28735.

#3 @obenland
3 years ago

#28899 was marked as a duplicate.

#4 @istein
3 years ago

Hello. I can duplicate this issue on 4.1. Could we tackle this with some jQuery?

$( window ).unload(function(event) {
  if ($('a.close-full-overlay').length > 0){
    $('a.close-full-overlay').click();
  }
});
Note: See TracTickets for help on using tickets.