Overview
Discourse does not properly render links when they contain double close parentheses — ))
— which means these links don’t work properly when added directly or when pasted over text to create an automatic text link.
Steps to reproduce
- Create a link that contains
))
somewhere in the middle of the URL. For example,meta.discourse.org/?parameter_one=((value))¶meter_two=value
. - Paste this into the composer, as-is.
- Paste the same URL over text to create an automatic text link.
Expected results
The original link should render and function correctly in both cases.
Observed results
The link functionality cuts off at the ))
and the rest of the URL is dropped.
Examples:
-
Discourse Meta - The Official Support Forum for Discourse)¶meter_two=value
-
[Text link](Discourse Meta - The Official Support Forum for Discourse)
Additional context
When pasting a link directly, encoding the double close parentheses as %29)
may work, as well as encapsulating the URL in <>
when pasting over text. Examples: