# Pasted URLs process + characters improperly when they are used (properly) as spaces

**URL:** <https://meta.discourse.org/t/pasted-urls-process-characters-improperly-when-they-are-used-properly-as-spaces/391836>\
**Category:** Bug\
**Tags:** composer\
**Created:** [December 21, 2025, 4:11am UTC](https://meta.discourse.org/t/pasted-urls-process-characters-improperly-when-they-are-used-properly-as-spaces/391836 "2025-12-21T04:11:49Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

[MentalNomad](/t/-/391836/1) reports a bug where pasted URLs in Discourse’s rich text editor improperly escape `+` characters (used as spaces in URL encoding) into `%2B`, breaking links to services like Frinklang. Examples show that both pasted URLs and those generated via Discourse’s hyperlink tool fail due to this misprocessing. [MentalNomad](/t/-/391836/1) notes this violates HTML form encoding standards ([WHATWG spec](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#application/x-www-form-urlencoded)). [sam](/t/-/391836/3) confirms the issue lies in the frontend and oneboxer, acknowledging its complexity due to historical bugs, and references a pending fix in [PR #36822](https://github.com/discourse/discourse/pull/36822). [MentalNomad](/t/-/391836/4) adds context about Frinklang’s strict standards compliance and recommends it for scientific applications. The issue highlights how Discourse’s URL handling interferes with legitimate use of `+` as space in query strings.

<div class="post-metadata">

**Author:** ![MentalNomad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalnomad/32/95159_2.png) [@MentalNomad](https://meta.discourse.org/u/MentalNomad)\
**Post date:** [December 21, 2025, 4:11am UTC](https://meta.discourse.org/t/pasted-urls-process-characters-improperly-when-they-are-used-properly-as-spaces/391836/1 "2025-12-21T04:11:49Z")

</div>

Continuing the discussion from [Pasted URLs in Rich Text Editor improperly escape tilde character](https://meta.discourse.org/t/pasted-urls-in-rich-text-editor-improperly-escape-tilde-character/377739/4):

Reproducing:

> **[Frink System Solver](https://frinklang.org/fsp/solve2.fsp?equations=a+%3D+3+b+%2B+c&solveFor=&f=&ev=on&sel_a=S&val_a=&sel_b=S&val_b=&sel_c=L&val_c=299792458+m+s%5E-1&resultAs=)**

I entered the following URL above by pasting it in the editor:  
`https://frinklang.org/fsp/solve2.fsp?equations=a+%3D+3+b+%2B+c&solveFor=&f=&ev=on&sel_a=S&val_a=&sel_b=S&val_b=&sel_c=L&val_c=299792458+m+s%5E-1&resultAs=`  
Proper response to clicking on the link would be:

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

But the Discourse-Rendered version of that URL is:  
`https://frinklang.org/fsp/solve2.fsp?equations=a%2B%3D%2B3%2Bb%2B%2B%2Bc&solveFor=&f=&ev=on&sel_a=S&val_a=&sel_b=S&val_b=&sel_c=L&val_c=299792458%2Bm%2Bs%5E-1&resultAs=`

Note the `%2B` replacing the `+` character. This fails, and produces the following result:

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/3/f/43fbf515a427ff0b879bde78bce0e11590ab87d3.png)

Testing hyperlink tool:

[Discourse-Made-Hyperlink](https://frinklang.org/fsp/solve2.fsp?equations=a+%253D+3+b+%252B+c&solveFor=&f=&ev=on&sel_a=S&val_a=&sel_b=S&val_b=&sel_c=L&val_c=299792458+m+s%5E-1&resultAs=)

Discourse Link Tool-Rendered URL:  
`https://frinklang.org/fsp/solve2.fsp?equations=a%2B%3D%2B3%2Bb%2B%2B%2Bc&solveFor=&f=&ev=on&sel_a=S&val_a=&sel_b=S&val_b=&sel_c=L&val_c=299792458%2Bm%2Bs%5E-1&resultAs=`

This also fails, looking like this:

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/d/8/ad81e795d037ac4a4705add11de87f1615c5bfe9.png)

I’m not 100% sure what’s going wrong, but I think it’s the `+` characters, which should be spaces, being mis-processed into a literal +.

Using a `+` for a space in a URL is standards-compliant for HTML form encoding, so this is possibly affecting other sites/systems that use the `+` character this way.

See: WHATWG. _HTML Living Standard_. Section “URL-encoded form data”. [HTML Standard](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#application/x-www-form-urlencoded)

---

<div class="post-metadata">

**Author:** ![MentalNomad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalnomad/32/95159_2.png) [@MentalNomad](https://meta.discourse.org/u/MentalNomad)\
**Post date:** [December 21, 2025, 4:14am UTC](https://meta.discourse.org/t/pasted-urls-process-characters-improperly-when-they-are-used-properly-as-spaces/391836/2 "2025-12-21T04:14:46Z")

</div>

Other issues which I thought were related, but I now think not:

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

> [@Links produced by the Composer link modal break when they contain a ' (%27)](https://meta.discourse.org/t/links-produced-by-the-composer-link-modal-break-when-they-contain-a-27/376782/6):
>
> I think this was fixed in [https://github.com/discourse/discourse/pull/34834](https://github.com/discourse/discourse/pull/34834) The result is [Horncastle boar's head](https://en.wikipedia.org/wiki/Horncastle\_boar's\_head) white_check_mark

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [December 22, 2025, 12:52am UTC](https://meta.discourse.org/t/pasted-urls-process-characters-improperly-when-they-are-used-properly-as-spaces/391836/3 "2025-12-22T00:52:08Z")

</div>

Yeah this is a messy one, I think only the oneboxer and frontend bug:

[https://frinklang.org/fsp/solve2.fsp?equations=a+%2B+b&solveFor=&f=&ev=on](https://frinklang.org/fsp/solve2.fsp?equations=a+%2B+b&solveFor=&f=&ev=on)

vs:

> **[Frink System Solver](https://frinklang.org/fsp/solve2.fsp?equations=a+%2B+b&solveFor=&f=&ev=on)**

```plaintext
<https://frinklang.org/fsp/solve2.fsp?equations=a+%2B+b&solveFor=&f=&ev=on>

vs:

https://frinklang.org/fsp/solve2.fsp?equations=a+%2B+b&solveFor=&f=&ev=on

```

I have a fix here, but as you can see from Related topics, this is VERY COMPLICATED ™ , over the years there have been so many bugs in this area.

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

---

<div class="post-metadata">

**Author:** ![MentalNomad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalnomad/32/95159_2.png) [@MentalNomad](https://meta.discourse.org/u/MentalNomad)\
**Post date:** [December 22, 2025, 3:18am UTC](https://meta.discourse.org/t/pasted-urls-process-characters-improperly-when-they-are-used-properly-as-spaces/391836/4 "2025-12-22T03:18:03Z")

</div>

Thanks for the attention!

You can trust Alan, the creator of the Frink language, to expose any error while being 100% standards-compliant. It’s what he _does_.

(Incidentally, if you ever need extreme unit correctness for any scientific or engineering application, do check out Frink.)
