Opened 8 years ago
Closed 8 years ago
#38833 closed defect (bug) (fixed)
Close button does not go to return URL after doing theme switch via customize-loader
Reported by: | westonruter | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Customize | Keywords: | has-patch |
Focuses: | Cc: |
Description
- Go to the Themes admin page.
- Click Live Preview for Twenty Fifteen (or some other).
- Open the Themes section and click to Live Preview the Twenty Fourteen theme (or some other).
- Click X to close the Customizer.
Bug1: Before clicking X, you'll notice the URL has theme=twentyfiteen
even though it should be theme=twentyfourteen
.
Bug2: Clicking X takes you back to previewing Twenty Fifteen not taking you back to the return
URL (the Themes admin page).
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
The problem is that the
customize-loader
is still active in the theme witch. The fix is simply to make sure we navigate to the new theme and clear out thecustomize-loader
at the same time by usingtop.location
instead ofwindow.location
.