Colon in URI gets encoded as '%3A' when clicking link - causes unexpected behavior
- iTerm2 version: 3.4.0beta12
- OS version: 10.15.7
- Spotify.app installed
- prefs: com.googlecode.iterm2.plist
Clicking on a link such as 'spotify:track:1BncfTJAWxrsxyT9culBrj' from an iTerm2 window does not open the correct page. I eventually figured out that this is because iTerm is Percent-encoding the 2nd : character so the URL that gets passed is 'spotify:track%3A1BncfTJAWxrsxyT9culBrj' instead, which is invalid Spotify. I made a small AppleScript protocol handler to show this:
from ctrl+click in iTerm2:
from macOS open command:
According to https://stackoverflow.com/questions/1737575/are-colons-allowed-in-urls and https://en.wikipedia.org/wiki/Percent-encoding it seems like a : after the protocol/scheme is valid without further encoding. I'm not 100% certain of whether this is a spec violation or not. But, clicking the same link from a Chrome window or via open 'spotify:track:1BncfTJAWxrsxyT9culBrj' works fine.
I can't be certain of exactly when, but I am sure this used to work in a previous version of iTerm, within the 3.3.x track. So something may have changed in the parser recently(?)
Thank you

