element-hq / element-hq/element-web

matrix.to permalink is not URL encoded

Open
#32,611 9 comments 0 reactions 0 assignees View on GitHub
A-Matrix.to O-Uncommon S-Minor T-Defect Z-Upstream
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

When mentioning a user using @, the client includes a matrix.to link in the formatted body of the event.

The Matrix specification explicitly requires matrix.to URLs to be URL-encoded as specified in https://spec.matrix.org/unstable/appendices/#matrixto-navigation
.
The current implementation does not apply URL encoding, resulting in non-compliant matrix.to links.

### Outcome

#### What did you expect?
`
"formatted_body": "User"
`
#### What happened instead?
`"formatted_body": "User"`

### Operating system

_No response_

### Browser information

_No response_

### URL for webapp

_No response_

### Application version

_No response_

### Homeserver

_No response_

### Will you send logs?

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.