title: iOS - Link from web browser opens an app in iOS app although it should be redirected to web browser
body: <p>There is an iOS app.</p>
  <p>There is a link on a web:
  &lt;a href=&quot;https://somedomain.com/forgotPassword?key=&lt;some_hash&gt;&quot;</p>
  <p>In iOS app, there is an <code>apple-app-site-association</code> file with config</p>
  <pre><code>{
    &quot;applinks&quot;: {
      &quot;apps&quot;: [],
      &quot;details&quot;: [
        {
           &quot;appID&quot;: &quot;....&quot;,
           &quot;paths&quot;: [&quot;NOT /forgotPassword&quot;, &quot;*&quot;]
        },
        {
           &quot;appID&quot;: &quot;....&quot;,
           &quot;paths&quot;: [&quot;NOT /forgotPassword&quot;, &quot;*&quot;]
        }
      ]
    }
  }
  </code></pre>
  <p>but the redirection happens from that link on a web to the iOS app, although this is in configuration: <code>&quot;NOT /forgotPassword&quot;</code> and redirection to iOS app should be intercepted and blocked.</p>
  <p>( I followed instructions from: <a href="https://stackoverflow.com/questions/35609667/how-to-support-universal-links-in-ios-app-and-setup-server-for-it/35609668#35609668">How to support Universal Links in iOS App and setup server for it?</a> )</p>
  <p>I tried <code>&quot;paths&quot;: [&quot;NOT /forgotPassword&quot;, &quot;*&quot;]</code> as well as <code>&quot;paths&quot;: [&quot;*&quot;, &quot;NOT /forgotPassword&quot;]</code></p>
  <p><strong>How do I configure it so opening links in browser would be redirected to iOS app (this part is working), EXCEPT when client calls <a href="https://somedomain.com/forgotPassword..." rel="nofollow noreferrer">https://somedomain.com/forgotPassword...</a></strong></p>
  <p>Sidenote:
  This part: opening links in browser would be redirected to IOS app - was working fine and still works fine when I had <code>&quot;paths&quot;: [&quot;*&quot;]</code>
  but when I introduced NOT clause, as is suggested in the stack overflow link above that I provided, this doesn't work.
  Should I format it in some other way?</p>
  <p>P.S. I'm a web developer, so if there are steps to be taken on iOS part, please be as concise and detailed as possible so I can forward it to iOS team.</p>
  <p>EDIT:
  In the meantime, I also tried these combinations:</p>
  <pre><code>&quot;paths&quot;: [&quot;*&quot;, &quot;NOT /forgotPassword?key=?&quot;]
  &quot;paths&quot;: [&quot;NOT /forgotPassword?key=?&quot;, &quot;*&quot;]
  </code></pre>