azicchetti / jquerymobile-router

A router/controller for jquery mobile. Also adds support for client-side parameters in the hash part of the url. The routes handles regexp based routes. This plugin can be used alone or (better) with Backbone.js or Spine.js, because it's originally meant to replace their router with something integrated with jQM.
GNU General Public License v2.0
402 stars 69 forks source link

Are urls like this "#category/:id/items" possible? #84

Open fernandopg opened 9 years ago

fernandopg commented 9 years ago

Hi, I had read the doc and didn't find if you can make urls like this:

"#category/:id/items"

where you can specify inside the url params and extract them in the handler!

Thanks a lot!

azicchetti commented 9 years ago

Hi, unfortunately, backbone-style urls are not supported by jquery mobile. In fact, it goes crazy whenever it sees a slash in the hash part of the url, because it thinks it is a remote ajax url.

Things may change in future versions of the framework.