[wp-trac] [WordPress Trac] #25457: Go back whence we came when closing the Customizer
WordPress Trac
noreply at wordpress.org
Fri Jun 27 21:24:27 UTC 2014
#25457: Go back whence we came when closing the Customizer
-------------------------+------------------
Reporter: birgire | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.0
Component: Customize | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui
-------------------------+------------------
Changes (by westonruter):
* keywords: needs-patch => has-patch
Comment:
Using `customize-loader` would make it easy to return to the original URL
since it would just involve the removal of the `iframe` overlay and
restoration of the URL (manipulated via `history.pushState()`) via
`history.back()` (see #28536), and this approach is also suggested in
#28661 on the frontend to speed up the loading of the customizer.
But I think the fix for this issue is much simpler and straightforward.
All we need to do is append the `REQUEST_URI` as the `return` query
parameter for the admin menu link to the Customizer. Then when hitting
Close in the Customizer, the user would be returned to the admin page from
which they clicked on the Customizer.
See [attachment:25457.1.diff].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25457#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list