1
0
mirror of https://github.com/vector-im/element-android.git synced 2025-08-06 03:42:41 +03:00

Accept only root path for mobile.element.io.

This commit is contained in:
Benoit Marty
2025-05-21 11:55:16 +02:00
parent ddc319fbca
commit a8ea684579
2 changed files with 11 additions and 2 deletions

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%2Felement.io" 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>