On this page
What this issue is
Universal Links let a normal https link open your iOS app instead of a web page. iOS decides this by reading the apple-app-site-association file on your domain (at /.well-known/apple-app-site-association). The file lists which URL paths the app handles.
This issue is about the rules, not the file's existence. The file loads fine, but the path your campaign uses (for example /promo/spring or /lp/app) is either not listed or is blocked by an exclusion rule such as NOT or exclude. The result is that the link is treated as an ordinary web link.
Why it costs you leads or sales
Campaign links are often built to send existing app users straight into the app, where they are logged in and one tap from buying or booking. When the path is not covered, those users land on a web page instead. They may have to log in again, re-enter details or give up.
It is also easy to miss. The link still works, so nobody reports an error. You only see weaker app conversion from paid traffic, and the cause looks like a creative or audience problem.
- Ad clickUser taps campaign URL on iPhone
- AASA rules checkPath excluded or not listed
- Opens in SafariWeb page instead of app
- In-app conversionLogged-in purchase or booking
The ad click works, but iOS finds no matching rule and keeps the user in the browser.
Example: share of iPhone clicks with the app installed that open the app, before and after the path rule is fixed.
How to check if your site has it
Open the file
Visit https://yourdomain.com/.well-known/apple-app-site-association in a browser. It should show JSON, not an HTML page.
Find the rules
Look under applinks > details. Newer files use a
componentsarray. Older files use apathsarray.Compare with your campaign URL
Take the exact path from your ad (ignore the query string, it is not matched by path rules unless you add a
?rule). Check whether any rule matches it.Look for exclusions
Rules with
"exclude": true(components) or a path starting withNOT(paths) block matches. Rules are read top to bottom and the first match wins.Test on a device
On an iPhone with the app installed, paste the campaign URL into Notes and tap it. It should open the app. Long-press shows an Open in app option if it is matched.
{
"applinks": {
"details": [
{
"appIDs": ["ABCDE12345.com.example.app"],
"components": [
{ "/": "/promo/*", "exclude": true },
{ "/": "/product/*" }
]
}
]
}
}In this example, /promo/spring is excluded, and /promo/* is not listed as a positive match anywhere, so it never opens the app.
How to fix it
Decide the exact path
Agree which campaign paths should open the app, for example
/promo/*or/lp/app.Add or edit the rule
Add a positive rule for the path. Remove the exclusion, or narrow it so it no longer catches the campaign path.
Mind the order
The first matching rule wins. Put specific rules before broad ones, and exclusions only where they are meant to apply.
Redeploy the file
Publish it at /.well-known/apple-app-site-association with no redirect, over HTTPS, as application/json.
Make sure the app handles the route
The app must have the Associated Domains entitlement (applinks:yourdomain.com) and code that handles the incoming URL. Changes in the app need a new build.
{
"applinks": {
"details": [
{
"appIDs": ["ABCDE12345.com.example.app"],
"components": [
{ "/": "/promo/*" },
{ "/": "/product/*" },
{ "/": "/admin/*", "exclude": true }
]
}
]
}
}Edit the static file
Update the file in your web root under .well-known and deploy. Make sure the server sends Content-Type: application/json and does not redirect.
Edit via file access
Edit the file in the site's root .well-known folder over SFTP or your host's file manager. Some app-link plugins generate it; if you use one, change the rules in its settings instead.
Purge caches
Clear any page or CDN cache so the new file is served.
Check how the file is served
Shopify does not let you freely host files at /.well-known/. The file is usually served by the app or service that manages your deep links, so change the rules there. If you cannot control it, ask that provider.
Use a proxy or the host
Webflow has no folder for /.well-known/ files. Serve the file through a reverse proxy or CDN rule in front of the site, and edit the rules there.
How to confirm it's fixed
- The live file shows your new rules, with no redirect.
- The campaign path matches a positive rule, and no earlier exclusion catches it.
- Tapping the full campaign URL from Notes or Messages opens the app on an iPhone with the app installed.
- Without the app installed, the same URL loads a working web page.
- UTMs and click ids on the URL still reach the app or web page you expect.
How to prevent it happening again
The usual cause is a new campaign path that nobody added to the AASA file, or a broad exclusion added later. Keep the file in version control and review it whenever marketing proposes a new landing path.
- Use one agreed path prefix for app-first campaigns, such as /promo/*.
- Add a review step: new campaign URL means check the AASA rules.
- Keep exclusions narrow and place them deliberately.
- Retest on a real iPhone after every change to the file or the app.
- Monitor the campaign URL on a schedule rather than relying on spot checks.
Before
- Campaign path excluded or unlisted
- Link opens in Safari
- App users start from a logged-out web page
After
- Campaign path matches a positive rule
- Link opens the app
- Users continue where they left off
How FunnelGuard handles this
FunnelGuard detects this issue. It reads the paths in your apple-app-site-association file and checks them against your campaign URL, so an excluded or missing path is flagged. It also runs the deep link check as part of the scheduled journey run.
A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. FunnelGuard reads the rules; it cannot tap the link on a physical iPhone, so still do a device test after you change the file. The Free plan covers 1 site and 2 journeys with daily checks and no card, and a free read-only audit is available.
Questions people ask
Why does my campaign link open in Safari instead of my app?
Most often the link's path does not match any rule in your apple-app-site-association file, or an exclusion rule matches it first. iOS then treats it as a normal web link. Add a positive rule for the path and remove or narrow the exclusion.
How do I add a path to Universal Links?
Edit the apple-app-site-association file on your domain and add a rule for the path, for example { "/": "/promo/*" } under components. Redeploy it at /.well-known/ with no redirect. The app also needs the Associated Domains entitlement for that domain.
Does the order of rules in the AASA file matter?
Yes. Rules are evaluated from top to bottom and the first match wins. If an exclusion sits above the rule that should match your campaign path, the link will not open the app.
Do query strings like UTMs affect Universal Links matching?
Path rules match the path, not the query string, so adding UTMs to /promo/spring does not normally stop it matching. Only rules that include a query component, such as ?, look at parameters.
How do I test if a Universal Link works?
On an iPhone with the app installed, paste the full campaign URL into Notes or Messages and tap it. It should open the app. Typing it into Safari's address bar always loads the web page, so it is not a valid test.
I fixed the AASA file but it still opens Safari. Why?
Apple's CDN caches the file, and devices fetch it when the app is installed or updated. Wait, then reinstall the app on a test phone. Also confirm the file has no redirect and the app has the correct entitlement.
Can FunnelGuard tell me if my campaign URL is excluded?
Yes. It reads the paths in your apple-app-site-association file and checks them against your campaign URL, then alerts you if the path is excluded or missing. It does not replace a tap test on a real iPhone.
Related issues
- APP-009apple-app-site-association missing, behind a redirect or a login, or served as an HTML pageFix guide
- APP-010apple-app-site-association malformed, over 128 kb, or app id not in TEAMID.bundle formFix guide
- APP-012Apple's CDN still serving an outdated apple-app-site-associationFix guide
- APP-015Deep link's web page answers 404 for people without the appFix guide
- APP-017Android app's intent filters don't cover the campaign URLFix guide
- APP-018Deferred deep link loses the campaign or destination after installFix guide