element-hq / element-hq/element-x-android

Fails to show user ID with slash

Open
#2,617 4 comments 0 reactions 0 assignees View on GitHub
A-Event Rendering A-Rich-Text-Editor O-Uncommon S-Minor T-Defect
Dominant language
Kotlin
Stars
2.4k
Forks
624
Avg merge
1d 14h
Merged PRs (30d)
149

Description

### Steps to reproduce

1. Open a [message](https://matrix.to/#/!ppWIVhhqgxBReHcvfZ:intelfx.name/$shCfE2Qp_sk8Ylw06TWQQ5-P9_XBRRdWuhE9x80qcYI) 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.