Reputation: 81
JQuery Routes Plugin. http://routesjs.com/
sample url : ../support/overview No problem
$.routes({
"/support/overview": function(){}
});
** In this way, the url does not work **
/support/overview/?id=1&cid=1
$.routes({
"/support/overview": function(){}
});
What am I doing wrong?
Upvotes: 0
Views: 3256
Reputation: 11044
You're supposed to be submitting this url
/support/overview/?id=1&cid=1
like so:
/support/overview/1/1
and to write your route
"/support/overview": function(){}
like so:
"/support/overview/:id/:cid": function(){}
That should fix your problems.
Upvotes: 1