[wp-trac] [WordPress Trac] #28536: Add browser history and deep linking for navigation in Customizer preview

WordPress Trac noreply at wordpress.org
Fri Jul 15 06:40:41 UTC 2016


#28536: Add browser history and deep linking for navigation in Customizer preview
-------------------------------------------------+-------------------------
 Reporter:  westonruter                          |       Owner:
     Type:  enhancement                          |  westonruter
 Priority:  normal                               |      Status:  reviewing
Component:  Customize                            |   Milestone:  Future
 Severity:  normal                               |  Release
 Keywords:  has-patch needs-testing needs-       |     Version:  3.4
  refresh                                        |  Resolution:
                                                 |     Focuses:  ui,
                                                 |  javascript
-------------------------------------------------+-------------------------

Comment (by westonruter):

 I'm happy to share a new feature plugin that implements the key parts of
 this ticket: [https://wordpress.org/plugins/customizer-browser-history/
 Customizer Browser History].

 > This plugin keeps the Customizer URL in the browser updated with current
 previewed URL as the `url` query param and current expanded
 panel/section/control as `autofocus` params. This allows for bookmarking
 and also the ability to reload and return go the same view (which is great
 for developers). This works best with the [https://github.com/xwp/wp-
 customize-snapshots Customize Snapshots] plugin, which allows allows you
 to save your Customizer state in a shapshot/changeset with an associated
 UUID that also gets added to the browser URL in the Customizer.

 It doesn't currently implement back/forward history (`history.pushState`
 and `popstate`), but it does implement the key feature of updating the
 browser's URL to reflect the current panel/section/control and URL being
 previewed. This allows you to reload the Customizer after navigating
 around and you'll be taken back to where you were before reloading. As I
 mentioned in the readme, this is extremely helpful for development.

 See also the project repo on GitHub: https://github.com/xwp/wp-customizer-
 browser-history

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28536#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list