airbnb / airbnb/DeepLinkDispatch
Dynamic path matching
- Dominant language
- Kotlin
- Stars
- 4.4k
- Forks
- 414
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Research direction
Start by reading the repository’s existing deep-link path-matching behavior and annotation syntax, then reproduce the two example URLs in a small Android activity. Check how dynamic values are placed in the bundle and whether slash-containing paths are supported; done means both URLs resolve and dynamic returns the expected full value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100