Universal Link Causing Too Many Redirects

I was wondering if anyone else ran into a similar problem. We have an universal link that leads to out iOS application. If we use the link by itself everything works properly.

On to the problem. We run some campaigns that utilise universal links to redirect users to the application directly from the email. The emails are using click tracking, which means that they put the universal link behind another link.

So it goes like this:

  1. User clicks link in the email
  2. User gets redirected to click tracking link
  3. User is redirected to the universal link
  4. Expected: App opens; Actual: User gets too many redirects error.

The weird thing about this issue is that if, after clicking on the link from email app, user chooses to open link in Safari, they get too many redirects. But if they choose Open In Default Browser (which is also safari btw) then it works and opens the app.

Any help here will be much appreciated since we tried everything we can think of and this problem still persists.

Universal Link Causing Too Many Redirects
 
 
Q