element-x-android
element-x-android copied to clipboard
Fails to show user ID with slash
Steps to reproduce
- Open a message containing user mention. User ID should have slash "/" in it, for example
@s/ash:matrix.org. - 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
BTW same happens at least in Element Web and Element for macOS
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.
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!
Thanks, I found that they already have it: https://github.com/matrix-org/matrix.to/issues/288