Merge pull request #9033 from element-hq/feature/bma/filterMobileLink

Filter mobile link
This commit is contained in:
Benoit Marty 2025-05-21 14:53:03 +02:00 committed by GitHub
commit bb142b6286
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 2 deletions

1
changelog.d/9033.misc Normal file
View File

@ -0,0 +1 @@
Filter mobile links: only open links which have an explicit empty path like `https://mobile.element.io/?hs_url=...`

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
adb shell am start -a android.intent.action.VIEW -d "https://mobile.element.io?hs_url=https%3A%2F%2Fmozilla-test.modular.im" adb shell am start -a android.intent.action.VIEW -d "https://mobile.element.io/?hs_url=https%3A%2F%2Felement.io"

View File

@ -206,8 +206,17 @@
<data android:host="develop.element.io" /> <data android:host="develop.element.io" />
<!-- Matching asset file: https://staging.element.io/.well-known/assetlinks.json --> <!-- Matching asset file: https://staging.element.io/.well-known/assetlinks.json -->
<data android:host="staging.element.io" /> <data android:host="staging.element.io" />
<!-- Fix it https://github.com/element-hq/element-android/issues/8904 --> </intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:host="mobile.element.io" /> <data android:host="mobile.element.io" />
<!-- accept only root path -->
<data android:path="/" />
</intent-filter> </intent-filter>
</activity> </activity>