When an url containing spaces is dragged in the % is encoded rather than the %20

AI-generated summary

Cardinalflyer reported an issue where dragging a URL with spaces into a post would encode the space as %20, but then the % would be further encoded to %25, breaking the link. This issue is demonstrated with the example URL https://www.lycoming.com/sites/default/files/Engine%20Timing%20Marks.pdf. pfaffman suggested that the issue may have been fixed recently, pointing to a similar bug report: Evernote oneboxes have extra %25 for each % in URL. Cardinalflyer confirmed this, realizing they had searched for the wrong keyword (%20 instead of %25).

One of our members dragged in a link from an URL which contains spaces. Those spaces were properly encoded into %20 in the link.

However the link then doesn’t work. When I hover over the link I see the % has been encoded to %25, leaving the space hanging there as a 20.

In fact I’ll drag that link in here so we can see what it does in Meta:

https://www.lycoming.com/sites/default/files/Engine%20Timing%20Marks.pdf

I see in the preview window it decodes it properly into spaces. I’m on a Discourse version from July 15th… any chance this was fixed lately? It is also working in the resulting post here. On my system I get the following… not the URL preview on the status line of the browser:

Have you updated recently? A bug that sounds like this was fixed in the last week or so.

That sounds like the one! I searched for %20… if I had looked for %25 it would have come up. Thanks!