quirkey / sammy

Sammy is a tiny javascript framework built on top of jQuery, It's RESTful Evented Javascript.
http://sammyjs.org
MIT License
2.99k stars 384 forks source link

Encoded url can not be routed properly #194

Closed SeanDongX closed 11 years ago

SeanDongX commented 11 years ago

Encoded url like /app2/#/property%23169 (/app2/#/property#169) can not be routed properly by routing rule this.get('/app2/#/property#:Id', ...)

endor commented 11 years ago

I am not entirely sure that this should work. It's not the same route after all.. what if you want to have exactly this route: "property%23169"? If you're looking for a solution to your specific problem, you could use a regular expression instead of the string in the route and allow both '#' and '%23'.

SeanDongX commented 11 years ago

Hmm. you are right. I will close this issue then. Thanks