Deep Links and Query Parameters

When using the ionic deeplinks plugin I can match to a path with a single parameter successfully so

’/:tibowId’: PageTibow

will work fine.

However I cannot get a path with a query string to work. I’m trying to match to


but cannot get the match string right.

Any ideas?

I would match just /api/foo and then use the $args property of the match object to pull the query parameters.

Thanks rapropos. I’ve tried that though, and just matching to one parameter
with the intention of getting the second through $args but it still doesn’t
successfully match.

I’m flying a bit blind as I can’t debug the match on my device and
deeplinks won’t work on ionic serve.

This sounds fishy. Are you trying to mix path and query parameters? That may not work. Can you see if you can get all the query parameters if the route is completely static (i.e. no path parameters)?

Robert, great, thanks. I genuinely thought I had tried that but apparently
not properly.
Matching to the static path api/foo when the actual link is

does the trick and both the params are available through $args.

Thanks again

1 Like

this plugin is deprecated…

Where is this documented @reedrichards ?

well nowadays (3 years later than my previous msg) it is “Community Maintained”

See the plugin

Yeah saw that, thanks for answering.

tis 9 feb. 2021 kl. 19:13 skrev Reedrichards via Ionic Forum <>: