millermedeiros / crossroads.js

JavaScript Routes
http://millermedeiros.github.com/crossroads.js/
1.44k stars 156 forks source link

routes with query params #139

Open 11111000000 opened 9 years ago

11111000000 commented 9 years ago

On route like this: /, and also /#/ all works fine. Then, I add query parameter to uri: /?invite=test, and it works, but /#/?invite=test and /#?invite=test isn't - nothing happens. How to support routes with query parameters? I need to add routes with RegEx or what?

lzl124631x commented 8 years ago

/#?invite=test should match {?invite}. Doesn't it?

lzl124631x commented 8 years ago

Are you using hasher.js, which helps you parse the hash part of url? The query string after # is actually part of hash.