DeepLinkDispatch icon indicating copy to clipboard operation
DeepLinkDispatch copied to clipboard

URL starting with {param}-

Open theo744 opened this issue 5 years ago • 2 comments

Hi, I have an issue with an url starting with {param}-

For example : https://domain.app/7-something I can't catch it with @DeepLink("https://domain.app/{id}-something")

If I change the URL to: https://domain.app/7/something I can catch it with @DeepLink("https://domain.app/{id}/something")

Why is that ?

Theo

theo744 avatar Jul 25 '19 00:07 theo744

Would it be possible to make the entire argument the id? For example:

@Deeplink("https://domain.app/{id}")

And then parse the id for the part you're interested in before the -something?

MichaelEvans avatar Feb 26 '20 20:02 MichaelEvans

Yes, it would probably work. The problem is that I already have other links handled successfully with @DeepLink, so I would have to parse all my other links with the global {id}, that's quiet a lot of work...

Do you know what is the matter with {id}-something ? It seems related to the '-' character but I don't know...

Théo

theo744 avatar Feb 28 '20 13:02 theo744