Merge pull request #8850 from element-hq/fix/jme/8894-ea-intercepts-mas-urls

Replace `*.element.io` deep link with actual hosts
This commit is contained in:
Benoit Marty 2024-06-25 14:17:18 +02:00 committed by GitHub
commit b5758c5335
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

1
changelog.d/8894.bugfix Normal file
View File

@ -0,0 +1 @@
Intercept only links from `element.io` well known hosts. The previous behaviour broke OIDC login in Element X.

View File

@ -184,7 +184,13 @@
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:host="*.element.io" />
<!-- Note: we can't use "*.element.io" here because it'll intercept the "mas.element.io" domain too. -->
<!-- Matching asset file: https://app.element.io/.well-known/assetlinks.json -->
<data android:host="app.element.io" />
<!-- Matching asset file: https://develop.element.io/.well-known/assetlinks.json -->
<data android:host="develop.element.io" />
<!-- Matching asset file: https://staging.element.io/.well-known/assetlinks.json -->
<data android:host="staging.element.io" />
</intent-filter>
</activity>