[wp-trac] [WordPress Trac] #28536: Add browser history and deep linking for navigation in Customizer preview
WordPress Trac
noreply at wordpress.org
Sat Jun 14 08:30:59 UTC 2014
#28536: Add browser history and deep linking for navigation in Customizer preview
----------------------------+-----------------------------
Reporter: westonruter | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Appearance | Version: 3.4
Severity: normal | Keywords:
Focuses: ui, javascript |
----------------------------+-----------------------------
The Theme Customizer allows you to click links within the preview to
navigate to other URLs to customize. Navigation within the preview is
especially important now with the Widget Customizer, since many templates
display render widget areas, and you may have to navigate to another URL
in the preview to edit that template's widget areas.
When you navigate, however, the URL in the parent window does not update
to reflect the URL inside of the preview. If the Customizer was first
invoked from http://example.org/test-page/ then the URL in the Customizer
will remain http://example.org/wp-
admin/customize.php?url=http%3A%2F%2Fexample.org%2Ftest-page%2F no matter
how much navigation is done in the preview. This makes it difficult to
deep-link in the Customizer preview.
Additionally, you cannot currently use the browser's back button to return
to the previously URL previewed in the Customizer.
To address the above usability problems, the Customizer should implement
`history.pushState` and the `popstate` event. Some support for these were
added when invoking the Customizer from for a theme preview, but it was
only implemented to add support for exiting out of the Customizer via the
back button. See [20488] for #20337.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28536>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list