Intent-filter to match domain only (no path)
<p>This might seem simple, but I can't figure out how to do it yet.</p>

<p>I need my app to be opened when user click on domain url.
I need to match the URL with domain (android:host) without path.
example.com or example.com/</p>

<p>I get it to work on example.com/ (with slash), but I can't capture the URL without slash: example.com</p>

<p>I tried using pathPattern /*, it doesn't work too.</p>

<p>Below is my Android Manifest:</p>

<pre><code>&lt;intent-filter&gt;
    &lt;action android:name="android.intent.action.VIEW" /&gt;
    &lt;category android:name="android.intent.category.DEFAULT" /&gt;
    &lt;category android:name="android.intent.category.BROWSABLE" /&gt;

    &lt;data android:scheme="http" /&gt;
    &lt;data android:scheme="https" /&gt;

    &lt;data android:host="example.com" /&gt;
    &lt;data android:host="www.example.com" /&gt;

    &lt;data android:pathPattern="/*" /&gt;
    &lt;data android:path="/" /&gt;
&lt;/intent-filter&gt;
</code></pre>

<p>Simply say, I wish match the URL with or without ending slash "/".
<a href="http://example.com" rel="noreferrer">http://example.com</a>
<a href="http://example.com/" rel="noreferrer">http://example.com/</a></p>