app-router
app-router copied to clipboard
Can not route on search parameters
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?