app-router icon indicating copy to clipboard operation
app-router copied to clipboard

Can not route on search parameters

Open liebrand opened this issue 9 years ago • 0 comments

I would like to be able to use a regex on not just the url path, but also the search parameters (eg ?foo=bar vs ?foo=eggs)

However, the line where it matches the route only takes the url.path in to consideration: https://github.com/erikringsmuth/app-router/blob/master/src/app-router.js#L207

should that not be url.path+url.search ?

Or is there a different/better way to route based on search parameters?

liebrand avatar Apr 01 '15 23:04 liebrand