element-hq / element-hq/element-web

Reserved characters (RFC 3986) in URLs are handled inconsistently

Open
#29,918 2 comments 0 reactions 0 assignees View on GitHub
A-URL-Previews 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

1. Send URL such as `https://genshin-impact.fandom.com/wiki/Ho%27olauna_aloha!`, `https://en.wikipedia.org/wiki/'` (note the trailing single quote)

### Outcome

#### What did you expect?
Element should include the trailing reserved characters, as they are not required to be percent encoded, as defined in RFC 3986.
#### What happened instead?
Element will exclude the trailing exclamation mark, single quote, etc, making the URL invalid.

### Operating system

_No response_

### Browser information

_No response_

### URL for webapp

_No response_

### Application version

1.11.100

### 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.