From ddc319fbca331e49553e24e4fc82689bea458106 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 21 May 2025 11:44:05 +0200 Subject: [PATCH 1/3] Use element.io for the hs_url parameter. --- tools/tests/test_configuration_link.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tests/test_configuration_link.sh b/tools/tests/test_configuration_link.sh index d0a5e38e6a..686061a432 100755 --- a/tools/tests/test_configuration_link.sh +++ b/tools/tests/test_configuration_link.sh @@ -1,3 +1,3 @@ #!/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" From a8ea684579a02c9da02f8f982d1e3b39e591d853 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 21 May 2025 11:55:16 +0200 Subject: [PATCH 2/3] Accept only root path for mobile.element.io. --- tools/tests/test_configuration_link.sh | 2 +- vector/src/main/AndroidManifest.xml | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/tools/tests/test_configuration_link.sh b/tools/tests/test_configuration_link.sh index 686061a432..54cb8c45f9 100755 --- a/tools/tests/test_configuration_link.sh +++ b/tools/tests/test_configuration_link.sh @@ -1,3 +1,3 @@ #!/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" diff --git a/vector/src/main/AndroidManifest.xml b/vector/src/main/AndroidManifest.xml index 56abe98703..fab5be1257 100644 --- a/vector/src/main/AndroidManifest.xml +++ b/vector/src/main/AndroidManifest.xml @@ -206,8 +206,17 @@ - + + + + + + + + + + From 02e93fdcf2dbf46fdb7fa97014f66dc022259d50 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 21 May 2025 12:03:23 +0200 Subject: [PATCH 3/3] Towncrier --- changelog.d/9033.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/9033.misc diff --git a/changelog.d/9033.misc b/changelog.d/9033.misc new file mode 100644 index 0000000000..2cb4ea1703 --- /dev/null +++ b/changelog.d/9033.misc @@ -0,0 +1 @@ +Filter mobile links: only open links which have an explicit empty path like `https://mobile.element.io/?hs_url=...`