SharpLab
SharpLab copied to clipboard
URL encoding breaks state
Some clients (looking at your Azure DevOps) will automatically re-encode Urls, resulting in the +
s used in the state to be encoded as %2B
. It would be nice if that were automatically re-decoded when loading the state from the Url.
Thanks for reporting! It makes sense, but I am a bit on a fence with issues like these.
On one hand I would rather prefer the other application to fix unnecessary re-encoding. On other hand they probably won't, and I do care about good user experience.
I'll consider it in the future, and make a decision later once I get to it again.
Running into the issue quite often. Especially on pull requests, I often need to share a short demo in a comment. The comments use Markdown. Neither bare links nor URLs in Markdown links survive. :-(
In practice, I often share the link as a Markdown code block. DevOps does not fiddle with the contents of code blocks and my colleagues may copy-paste the URL.
I am not sure why the plus is even needed in the URL. Can it be replaced with another character? An underscore maybe? I believe fixing old links that never worked is not as important as enabling the sharing of new links.