ios common hyperlinks – The way to forestall an app redirect on iOS for an URL with question?

[ad_1]

we’re troubleshooting a problematic situation involving the Common Hyperlinks on iOS.
In a nutshell, we want to ensure the app redirect occurs just for the trail with out a question.
I.e. when the person goes to https://www.instance.com/path, we would like it to be redirected to an app. Nonetheless, we’ve got a bunch of complicated scripts on the positioning, triggered by urls like https://www.instance.com/path?someparam=1&anotherparam=23, that needs to be dealt with through the **browser **(no help for these options within the app but).
We have have our Area Affiliation file uploaded, and it has featured the next snippet within the parts part:

{"/":"/path"},

This does power the iOS to redirect to our app every time person clicks a no-query an any utility, or scans a QR code.
Nonetheless, it does additionally trigger a redirect for the hyperlinks with question (https://www.instance.com/path?someparam=1&anotherparam=23)

I’ve learn by way of the https://developer.apple.com/documentation/bundleresources/applinks on this, and have tried just a few methods:

  1. Insert an exclude block previous to the prevailing one:
{"/":"/path", "?":"?*", "exclude":true},
{"/":"/path"},
  1. Replace the prevailing block to implement an empty question on it:
{"/":"/path", "?":""}, // presupposed to override the implied "?":"*"
  1. Prepend the prevailing block with a bit completely different type of the question sample (to intercept a specfic param in question):
{"/":"/path", "?":{"someparam":"?*"}, "exclude":true},
{"/":"/path"},

Nothing did assist to date – iOS nonetheless does redirect the hyperlinks https://www.instance.com/path?someparam=1&anotherparam=23 to the applying. I’ve checked that the file is just not cached by our reverse proxy. I’ve checked that the outdated file is just not being cached by our cloudflare CDN. I’ve checked that the outdated file is just not being cached by the apple supply service. I’ve bought a clear iOS machine to make sure I haven’t got the redirect desire cached localy – nonetheless redirects.

Is that this situation supported in any respect? Possibly there’s a bug in iOS/Safari implementation?

[ad_2]

Leave a Reply