element-x-android icon indicating copy to clipboard operation
element-x-android copied to clipboard

Fails to show user ID with slash

Open shadow-identity opened this issue 1 year ago • 4 comments

Steps to reproduce

  1. Open a message containing user mention. User ID should have slash "/" in it, for example @s/ash:matrix.org.
  2. Tap on user ID

Outcome

What did you expect?

To see the user info, like with any other user.

What happened instead?

It opens https://matrix.to/#/@it/sme:matrix.org. Matrix.to fails to show the user (incorrectly reporting "wrong URL"). So user can not see any user info.

Please note that the slash in the user id @it/sme:matrix.org is not escaped. But even escaped slash URL matrix.to returns the error.

Your phone model

No response

Operating system version

Android 14

Application version and app store

Element X 0.4.6

Homeserver

No response

Will you send logs?

No

Are you willing to provide a PR?

No

shadow-identity avatar Mar 28 '24 10:03 shadow-identity

BTW same happens at least in Element Web and Element for macOS

shadow-identity avatar Mar 28 '24 10:03 shadow-identity

Thanks for reporting.

/ is accepted in the Matrix userId localpart grammar: https://spec.matrix.org/latest/appendices/#user-identifiers, so this will have to be fixed at some point.

bmarty avatar Mar 28 '24 11:03 bmarty

For the issue with matrix.to not working properly, you may want to report it in this project https://github.com/matrix-org/matrix.to. Thanks!

bmarty avatar Mar 28 '24 11:03 bmarty

Thanks, I found that they already have it: https://github.com/matrix-org/matrix.to/issues/288

shadow-identity avatar Mar 28 '24 12:03 shadow-identity