IOS path exception in generic link not working

I implemented Universal Links. The apple-app-site association is structured as follows:

{ "applinks": { "apps": [], "details": [ { "appID": "APPID.my.awesome.newspaper", "paths": [ "NOT /webapp/issue/*/ads/*", "/webapp/issue/*/*.html" ] } ] } } 

For some reason, the first path is NOT considered at all.

For instance:

These URLs are processed as expected:

 awesome-newspaper.my/webapp/issue/sz/2016-01-22/page_2.157908/article_1.2828646/article.html awesome-newspaper.my/webapp/issue/sz/2016-01-22/page_2.157908/page.html 

This URL should not be treated as Universal Link and should always open in Safari.

 awesome-newspaper.my/webapp/issue/sz/2016-01-22/ads/ad_145/index.html 

But it always opens in the application.

Can anyone help me out?

+6
source share
1 answer

I think the problem is that your URL matches both cases, which makes the results unpredictable.

try to make the paths mutually exclusive. if this is not possible, you may need to change the structure of the URL.

UPDATE:

it is possible that your NOT string is poorly formatted, try changing it to: "NOT /webapp/issue/*/ads/*/*.html"

0
source