# כשמדביקים קישור עם תווים מיוחדים הוא מוסיף תווי בריחה, מה שמשבית את הקישור

**URL:** https://meta.discourse.org/t/when-pasting-a-link-with-special-characters-it-will-add-escape-characters-crippling-the-link/377972
**Category:** Bug
**Tags:** composer
**Created:** [9 באוגוסט,‏ 2025,‏ 8:23am UTC](https://meta.discourse.org/t/when-pasting-a-link-with-special-characters-it-will-add-escape-characters-crippling-the-link/377972 "2025-08-09T08:23:46Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![PCPal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pcpal/32/455064_2.png) [@PCPal](https://meta.discourse.org/u/PCPal)
#### Post date: [9 באוגוסט,‏ 2025,‏ 8:23am UTC](https://meta.discourse.org/t/when-pasting-a-link-with-special-characters-it-will-add-escape-characters-crippling-the-link/377972/1 "2025-08-09T08:23:46Z")

</div>

Hello,

I know I could do so much more to adequately tell the right developer exactly what happened to me the last few days/weeks when reading my newspaper and trying to copy links I find interesting to my private forum, to keep track of what I was reading.

All of a sudden I get ERROR 400 from the servers of the Newspapers, that disrupt my reading / posting system.

After cooling down and reproducing the steps needed to get to this point I concluded it has to be a bug in how Discourse parses links pasted to the editor when using Chrome.

This would be a link I want to keep track of just by pasting it in a topic:

[https://www.destentor.nl/home/moeilijke-combinatie-hulpverlener-beschermen-en-psychotische-dader-straffen~a9297efa/](https://www.destentor.nl/home/moeilijke-combinatie-hulpverlener-beschermen-en-psychotische-dader-straffen~a9297efa/)

When pasting it in my Discourse it pastes this however:

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/c/6/6c632a83a13788cefea310875d0ba859390f73da.png)

You see how it adds the backslash here? I think it has something to do with string escaping and parsing the ~ in this case. Please fix your regex :wink:

Sorry, just a user here - can’t edit/upload this code myself yet without breaking stuff so letting you do it.

---

_[View the full topic](https://meta.discourse.org/t/when-pasting-a-link-with-special-characters-it-will-add-escape-characters-crippling-the-link/377972)._
