title: Android Deep linking omit certain url
body: <p>I have implemented deep linking to my app successfully but I am stuck with a problem.</p>
  
  <pre><code>&lt;intent-filter android:autoVerify="true"&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:host="*.example.com"
         android:scheme="https"/&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>This intent filter handles all the links but I don't want to catch a certain url i.e.</p>
  
  <pre><code>https://www.example.com/hello/redirect/
  </code></pre>
  
  <p><strong>What I tried so far:</strong></p>
  
  <p>I tried entering all the URLs that I want to catch manually</p>
  
  <pre><code>&lt;data
     android:host="*example.com"
     android:scheme="https"
     android:pathPrefix="/m/"&gt;
  &lt;data
     android:host="*example.com"
     android:scheme="https"
     android:pathPrefix="/c/"&gt;
  &lt;data
     android:host="*example.com"
     android:scheme="https"
     android:pathPrefix="/p/"&gt;
  ...
  </code></pre>
  
  <p>But then my home page URL <code>https://www.example.com</code> doesn't work.</p>
  
  <p>If i use </p>
  
  <pre><code>android:pathPrefix="/"
  </code></pre>
  
  <p>then this will start catching all the URLs again including the url i want to omit.</p>
  
  <p>I also tried using <code>android:pathPattern</code>, but it can't understand a complicated regex like this <code>^((?!redirect).)*$</code> which works fine when I try it in strings and all.</p>
  
  <p>Anybody know how can I omit certain URLs?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>As suggested by @PLNech <a href="https://stackoverflow.com/a/41428066/6602985">here</a>, I added all the URLs that I need to catch using <code>android:pathPrefix</code> and use <code>android:path: "/"</code> to catch the URL of my home page i.e. <a href="https://www.example.com/" rel="noreferrer">https://www.example.com/</a></p>
  
  <pre><code> &lt;data
     android:host="*.example.com"
     android:scheme="https"
     android:path="/"/&gt;
   &lt;data
    android:host="*example.com"
    android:scheme="https"
    android:pathPrefix="/m/"&gt;
   &lt;data
    android:host="*example.com"
    android:scheme="https"
    android:pathPrefix="/c/"&gt;
   &lt;data
    android:host="*example.com"
    android:scheme="https"
    android:pathPrefix="/p/"&gt;
  </code></pre>