Copying URL with Cmd-C from Firefox Address Bar Does Not Encode Spaces to %20
Categories
(Firefox :: Untriaged, defect)
Tracking
()
People
(Reporter: timothy.dement, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0
Steps to reproduce:
- Navigate to a URL containing %20 escape codes for space
- Check URL, see spaces instead of %20
- Cmd-C (or equivalent) the URL
- Paste the URL in Slack (or other programs that don't auto-encode)
- URL is split at spaces
Can use https://openwhisk.ng.bluemix.net/api/v1/web/API%20Connect%20Native_apic-on-prem/default/index.http as an example
Actual results:
Because the URL in the address bar is generated with spaces, and these spaces are not encoded to %20 when copied with Cmd-C, any program that auto-fills hyperlinks but doe not auto-encode them will split the URL on the spaces.
Note that if the Copy Link option of the [•••] drop-down in the address bar is used, this problem does not occur (spaces are encoded as %20 to clipboard).
Expected results:
Copying the URL in the address bar with Cmd-C or otherwise should encode spaces as %20, and any other non-html-safe characters to their equivalent encodings as well (not sure if other characters affected).
| Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
It works as expected for me (cmd+L, cmd+C, paste and the spaces are encoded).
Are you selecting only part of the URL by any chance?
| Reporter | ||
Comment 2•5 years ago
|
||
Nope, also can't reproduce it today! Closing.
Description
•