Check these in order, because each one is only worth checking once the one before it is right:
- the AASA file is served over HTTPS with no redirect, which it is on any domain configured on the Appspace
- the Associated Domains entitlement names that domain, as
applinks:your-domain - the route has Universal Links enabled
If all three are right and the link still opens Safari, the next two candidates are a per device override and Apple holding an older copy of the file, and both have their own answer in this topic.
Troubleshooting iOS walks each one with the exact thing to look for.