DeepLinkDispatch icon indicating copy to clipboard operation
DeepLinkDispatch copied to clipboard

Dynamic path matching

Open fernandospr opened this issue 7 years ago • 5 comments

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.

fernandospr avatar Mar 01 '17 16:03 fernandospr

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?

anujbhargava94 avatar Jul 10 '17 22:07 anujbhargava94

@felipecsl is there a fix for this particular issue?

Amarpreet88 avatar Aug 08 '17 20:08 Amarpreet88

@Amarpreet88 not yet. And it's a feature request, really, instead of an Issue. I'll tag it accordingly 😄

felipecsl avatar Aug 09 '17 01:08 felipecsl

meow

dazza5000 avatar Nov 05 '18 14:11 dazza5000

this can reduce lot of duplication , if we provide some pattern matching wherein all matching routes can be mapped to single activity

swanandvk avatar Feb 04 '23 15:02 swanandvk