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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

fernandopg opened this issue · comments

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!

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.