[wp-trac] [WordPress Trac] #25963: Appearance Themes: Backbone.Router should use pushState with ?query type urls

WordPress Trac noreply at wordpress.org
Sat Dec 7 17:20:51 UTC 2013


#25963: Appearance Themes: Backbone.Router should use pushState with ?query type
urls
------------------------------+---------------------
 Reporter:  matveb            |       Owner:
     Type:  enhancement       |      Status:  closed
 Priority:  high              |   Milestone:  3.8
Component:  Appearance        |     Version:  trunk
 Severity:  major             |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by matveb):

 I have been working on a possible solution that will allow us to use
 routing instead of passing the url params via localize script. We can
 parse the url parameters from {{{Backbone.history}}} and then trigger
 proper {{{route:theme}}} events which we hook to the same way we were
 doing before.

 I have it working but things got out of sync with the latest commit here.
 This is what I propose, though, what do you think?

 https://cloudup.com/cPHH02p4W9s

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25963#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list