title: Prevent redirect from triggering App / Universal Link behavior
body: <p>We have a web product and Android/iOS mobile apps with App (Android) &amp; Universal (iOS) links enabled. This enables the OS to open our app in various scenarios where the user would otherwise have been navigated to our mobile web product.</p>
  
  <p>We are now facing a problem where our apps open under this undesirable scenario: </p>
  
  <ul>
  <li>User opens the native browser and navigates to <code>https://www.example.com</code>. In this case, the OS respects the user's intention to use the native browser and does not open the app.</li>
  <li>User taps on "Login" on our web site. This sends the user to <code>https://login.example.com</code> where they submit their credentials. </li>
  <li><code>https://login.example.com</code> redirects the user to <code>https://www.example.com</code>. At this point, both Android &amp; iOS open the app.</li>
  </ul>
  
  <p>It would be preferable for the redirection to occur within the browser so as to continue respecting the user's intent. I believe this happens due to the redirection from a non-app/universal link domain to an app/universal link domain.</p>
  
  <p>Is there a way to perform this redirection without leading to the apps getting opened? I've tried redirecting via a <code>Location</code> header, and via a <code>&lt;meta http-equiv="refresh" content="0; URL='https://www.example.com'"/&gt;</code> head tag with the same result. The only remaining thing to try I can see is to host our login feature under the <code>www</code> subdomain.</p>