SharpLab icon indicating copy to clipboard operation
SharpLab copied to clipboard

URL encoding breaks state

Open im-aIex opened this issue 1 year ago • 3 comments

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.

im-aIex avatar Apr 26 '23 19:04 im-aIex

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.

ashmind avatar May 29 '23 11:05 ashmind

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.

TomasMalecek avatar Feb 09 '24 22:02 TomasMalecek

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.

TomasMalecek avatar Feb 09 '24 22:02 TomasMalecek