Background
Our current AASA file recognizes any universal link at *.wikipedia.org with the /wiki/ path.
Editing flow interruption
We do not want the app to intercept users while they are in the middle of editing an article in the browser via visual editor. To do this, we could try adding editor to the app store association file's exclude paths and veaction=edit as an excluded query item.
https://{lang}.wikipedia.org/wiki/{articletitle}#/editor
https://{lang}.wikipedia.org/wiki/{articletitle}?veaction=edit§ion=0&returntoapp=1
Authentication interruption
There is also a risk of the app interrupting when going through the editing authentication flow (see https://wikimedia.slack.com/archives/C06UBL7NBFT/p1783548816850159). This is because the authentication domain is auth.wikimedia.org, instead of our usual wikipedia.org domains that the app recognizes. When the app is leaving the auth domain to the wikipedia.org (which the app recognizes), the app takes over.
To improve this flow, I recommend adding exclusions to Special wiki pages as well. In the slack screencast, interrupts are occurring when navigating to:
/wiki/Main_Page
/wiki/Special:Contributions and
/wiki/Special:Watchlist
Contributions and Watchlist are fairly editor-focused flows, if we add those urls as exclusions, the app will not take over during that navigation.
AASA file proposal
Note: Seeking out "Special:" might mean only EN wiki flows are improved. We may need to add individual urls for Special magic word translations as well (for example: https://es.wikipedia.org/wiki/Especial:Contribuciones/TSevener_(WMF))
Another Note: I am also adding another attempted fix for T343746: Fix for apple-app-site-association for thankyou.wikipedia.org in this proposal. While we're here updating association files, we might as well try to fix that too.
{
"activitycontinuation": {
"apps": [
"AKK7J2GV64.org.wikimedia.wikipedia.developer",
"AKK7J2GV64.org.wikimedia.wikipedia.tfalpha",
"AKK7J2GV64.org.wikimedia.wikipedia.tfbeta",
"AKK7J2GV64.org.wikimedia.wikipedia.adhoc",
"AKK7J2GV64.org.wikimedia.wikipedia"
]
},
"webcredentials": {
"apps": [
"AKK7J2GV64.org.wikimedia.wikipedia.developer",
"AKK7J2GV64.org.wikimedia.wikipedia.tfalpha",
"AKK7J2GV64.org.wikimedia.wikipedia.tfbeta",
"AKK7J2GV64.org.wikimedia.wikipedia.adhoc",
"AKK7J2GV64.org.wikimedia.wikipedia"
]
},
"applinks": {
"details": [
{
"appIDs": [
"AKK7J2GV64.org.wikimedia.wikipedia.developer",
"AKK7J2GV64.org.wikimedia.wikipedia.tfalpha",
"AKK7J2GV64.org.wikimedia.wikipedia.tfbeta",
"AKK7J2GV64.org.wikimedia.wikipedia.adhoc",
"AKK7J2GV64.org.wikimedia.wikipedia"
],
"components": [
{
"/": "/wiki/Thank_You*",
"exclude": true,
"comment": "Exclude thank you pages"
},
{
"/": "/wiki/Special:*",
"exclude": true,
"comment": "Exclude Special: pages"
},
{
"/": "/wiki/*",
"?": { "veaction": "edit" },
"exclude": true,
"comment": "Exclude edit actions"
},
{
"/": "/wiki/*",
"#": "/editor*",
"exclude": true,
"comment": "Exclude editor fragment"
},
{
"/": "/wiki/*",
"comment": "Match all other wiki pages"
}
]
}
]
}
}Location in Repo - https://phabricator.wikimedia.org/T343746#9075010