# Ensure that links containing )) still render and work correctly

**URL:** <https://meta.discourse.org/t/ensure-that-links-containing-still-render-and-work-correctly/335205>\
**Category:** Bug\
**Tags:** pr-welcome\
**Created:** [November 8, 2024, 4:22pm UTC](https://meta.discourse.org/t/ensure-that-links-containing-still-render-and-work-correctly/335205 "2024-11-08T16:22:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)\
**Post date:** [November 8, 2024, 4:22pm UTC](https://meta.discourse.org/t/ensure-that-links-containing-still-render-and-work-correctly/335205/1 "2024-11-08T16:22:34Z")

</div>

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

1. Create a link that contains `))` somewhere in the middle of the URL. For example, `meta.discourse.org/?parameter_one=((value))&parameter_two=value`.
2. Paste this into the composer, as-is.
3. 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](http://meta.discourse.org/?parameter_one=((value)))&parameter\_two=value

- [Text link]([Discourse Meta](http://meta.discourse.org/?parameter_one=((value)))

## 📚 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:

- [Discourse Meta](http://meta.discourse.org/?parameter_one=((value)%29&parameter_two=value)
- Text link

---

_[View the full topic](https://meta.discourse.org/t/ensure-that-links-containing-still-render-and-work-correctly/335205)._
