302 Redirect to universal link opens app from Safari

We build an app which needs to work both in the browser and in our app. We recently have been playing around with universal links and found something I would like to understand. In order to login we employ a SSO server which does a bunch of 302 redirects which end up on a universal link as the landing page.

If you use safari and login the app will be triggered and opens because it tries to redirect to the universal link. This behaviour doesn't really line up with what I am expecting as normal navigation responses are not been pushed into the app, but 302 redirects do?

Is that the normal behaviour and if yes, is there way to avoid that with some header settings ?

just want to mention that the login page is displayed from different sub.domain. - sso.domain.com -> app.domain.com when switching to app.domain.com then we can see that behaviour described above.

302 Redirect to universal link opens app from Safari
 
 
Q