[wp-trac] [WordPress Trac] #25963: Appearance Themes: Backbone.Router should use pushState with ?query type urls
WordPress Trac
noreply at wordpress.org
Wed Dec 4 18:30:54 UTC 2013
#25963: Appearance Themes: Backbone.Router should use pushState with ?query type
urls
-------------------------+--------------------
Reporter: matveb | Owner:
Type: enhancement | Status: new
Priority: high | Milestone: 3.8
Component: Appearance | Version: trunk
Severity: major | Resolution:
Keywords: |
-------------------------+--------------------
Comment (by carldanley):
I didn't have a ton of time but hopefully this will help somehow. I put
together a function for you that parses the GET params of a URL.
https://gist.github.com/carldanley/e3e1f609091f67356f59
You can play around with this function here: http://jsfiddle.net/zwb8E/ .
* If the URL contains multiple `?`'s, the last `?`'s parameters are used.
* If the URL contains an empty GET param, it will have a value of
`undefined`.
My idea is that this can be wrapped into something, somewhere to help you
support this. Let me know if you have any questions.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25963#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list