# URLs in Rich Text Editor onjuist ontsnappen tilde-teken

**URL:** https://meta.discourse.org/t/pasted-urls-in-rich-text-editor-improperly-escape-tilde-character/377739
**Category:** Bug
**Tags:** composer
**Created:** [7 augustus 2025 om 14:53 UTC](https://meta.discourse.org/t/pasted-urls-in-rich-text-editor-improperly-escape-tilde-character/377739 "2025-08-07T14:53:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![JImSculley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimsculley/32/492350_2.png) [@JImSculley](https://meta.discourse.org/u/JImSculley)
#### Post date: [7 augustus 2025 om 14:53 UTC](https://meta.discourse.org/t/pasted-urls-in-rich-text-editor-improperly-escape-tilde-character/377739/1 "2025-08-07T14:53:06Z")

</div>

Users of my Discourse site frequently paste URLs from the web documentation for the API of software they use. The URLs for pages in the API docs often have the tilde character `~` in them. When such links are pasted into the new rich text editor composer window, the tildes are improperly escaped. So, a URL like this:

```plaintext
https://help.solidworks.com/2023/english/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.IFeatureManager.html

```

gets mangled to this:

```plaintext
https://help.solidworks.com/2023/english/api/sldworksapi/SolidWorks.Interop.sldworks\~SolidWorks.Interop.sldworks.IFeatureManager.html

```

Note the extra backslash before the tilde. The same link pasted into the Markdown composer window is not mangled.

---

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [7 augustus 2025 om 15:35 UTC](https://meta.discourse.org/t/pasted-urls-in-rich-text-editor-improperly-escape-tilde-character/377739/2 "2025-08-07T15:35:51Z")

</div>

Bedankt voor het rapport, we zullen het onderzoeken!

---

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [8 augustus 2025 om 12:23 UTC](https://meta.discourse.org/t/pasted-urls-in-rich-text-editor-improperly-escape-tilde-character/377739/4 "2025-08-08T12:23:53Z")

</div>

A fix has been merged:

[https://github.com/discourse/discourse/pull/34164](https://github.com/discourse/discourse/pull/34164)

Thank you for reporting it.

---

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [12 augustus 2025 om 12:24 UTC](https://meta.discourse.org/t/pasted-urls-in-rich-text-editor-improperly-escape-tilde-character/377739/5 "2025-08-12T12:24:57Z")

</div>

Dit onderwerp werd automatisch gesloten na 4 dagen. Nieuwe reacties zijn niet meer toegestaan.
