linkifyjs icon indicating copy to clipboard operation
linkifyjs copied to clipboard

Reserved characters (RFC 3986) in URLs are handled inconsistently

Open PseudoResonance opened this issue 7 months ago • 0 comments

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?

Linkify should include the trailing reserved characters, as they are not required to be percent encoded, as defined in RFC 3986.

What happened instead?

Linkify will exclude the trailing exclamation mark, single quote, etc, making the URL invalid.

From element-hq/element-web/issues/29918

PseudoResonance avatar May 12 '25 07:05 PseudoResonance