millermedeiros / crossroads.js

JavaScript Routes

Home Page:http://millermedeiros.github.com/crossroads.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

routes with query params

11111000000 opened this issue · comments

commented

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?

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

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