DeepLinkDispatch
DeepLinkDispatch copied to clipboard
Dynamic path matching
Hi, I have the following urls:
https://www.mycompany.com/products/abc/def/2 https://www.mycompany.com/products/test
Is it possible to create an entry for an activity that would handle both urls?
Something like this: https://www.mycompany.com/products/{dynamic}
Where dynamic
could contain slashes and using bundle.getString("dynamic") would return "abc/def/2" for the first example and "test" for the second example.
I have thought creating two entries, one for each example, however, in the future more may exist, so I wonder if it is possible to use dynamic entries.
I have the similar scenario which is described as below: https://www.mycompany.com/products/test https://www.mycompany.com/products/abc/def/2 https://www.mycompany.com/products/abc/def/2/345/*
Basically after products I can have any number parameters. Is there a way to handle path pattern here @DeepLink , so that all such url lands at the same activity.
@fernandospr did you find the solution for this problem?
@felipecsl is there a fix for this particular issue?
@Amarpreet88 not yet. And it's a feature request, really, instead of an Issue. I'll tag it accordingly 😄
meow
this can reduce lot of duplication , if we provide some pattern matching wherein all matching routes can be mapped to single activity