My apple-app-site-association file contains:
{
	"applinks": {
		"apps": [],
		"details": [
			{
				"appIDs": [ "..." ],
				"components": [
					 {
						 "/": "/login/magic/*",
						 "?": { "app": "*" },
					 }
				]
			}
		]
	}
}
I verified that this pattern is showing up correctly in the simulator using sysdiagnose:
Service: applinks
App ID: ...
App Version: 167.0
App PI: <LSPersistentIdentifier 0x7fe5ad40d650> { v = 0, t = 0x8, u = 0x15c, db = F725A6E9-DD30-4041-9104-93C2B7BF848B, {length = 8, bytes = 0x5c01000000000000} }
Domain: example.com
Patterns: 	{"?":{"app":"*"},"/":"/login/magic/*"}
User Approval: unspecified
Site/Fmwk Approval: approved
Flags:
Last Checked: 2021-02-05 13:09:31 +0000
Next Check: 2021-02-10 12:30:28 +0000
The issue i'm facing is the app is launching from URLs that do not include the requisite app parameter in the URL's query.
For example, these URLs launch the app when they shouldn't:
https://example.com/login/magic
https://example.com/login/magic/deadbeef?rot=ok
Am I misunderstanding something? Shouldn't the app only be opened if there's an app in the query string?