Registering routes for url
DinaHussieny opened this issue · comments
DinaHussieny commented
I try to registering routes for this url http://www.mydomain.com/compare?ids=12345,67891
I register it as
router[@"http://www.mydomain.com/compare?ids=:firstID,:secondID"] = ^() {}
but it always gives me The passed URL does not match a registered route
Bay Phillips commented
You don't register query parameters in routes. Instead, just register the route as /compare
and when you handle the DPLDeepLink
, you'll be given access to the query parameters via the deepLink.queryParams
dictionary.