Cmd-Clicking a URL with a %2B gets changed to a plus character (which urldecodes to a space character)
- iTerm2 version: Build 3.4.6
- OS version: macOS 10.15.7 (19H1030)
- Safari version: Version 14.1 (15611.1.21.161.7, 15611)
- Firefox version: 88.0.1 (64-bit)
- Chrome version: Version 90.0.4430.212 (Official Build) (x86_64)
Detailed steps to reproduce the problem:
- Open a new terminal
- Run the following command
echo 'https://duckduckgo.com/?q=_%2B_'
- Cmd-click the echoed URL
What happened:
The default browser goes to https://duckduckgo.com/?q=_+_
Note that the %2B
has replaced with +
. This behavior occurs regardless of which browser I used (I checked Safari, Firefox, and Chrome, versions are up above)
What should have happened:
The URL should have been preserved as https://duckduckgo.com/?q=_%2B_. The net effect of this is such that a search for _+_
gets turned into _ _
(a contrived example, because this affected a different website too, but a search engine is a nice public way to demo the issue)
Edited by Alex Gittemeier