button / DeepLinkKit

A splendid route-matching, block-based way to handle your deep links.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Registering routes for url

DinaHussieny opened this issue · comments

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

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.