pathPattern wildcard with single segment

Viewed 27

I want my app open user links that look like:

https://trakt.tv/users/<username>

but not sublinks of the user

https://trakt.tv/users/<username>/<something>

The pattern I'm using is <data android:scheme="https" android:host="trakt.tv" android:pathPattern="/users/..*" /> which is not valid in my case as it opens the sublinks.

Is there a way to restrict the pattern up to /users/ but not more?

1 Answers

Have you tested this code snippet? android:pathPattern="/users/"

Related