Skip to content

Opening link in Markdown file wrongly decodes %2F #106097

Closed

Description

@mhchem

Issue Type: Bug

  • Open a new editor of type Markdown
  • Paste a link including %2F, e.g. [test](https://example.com/This%20is%20a%20test%20with%2F%20in%20the%20URL)
  • Ctrl-Click or Cmd-Click the https link and open it in a browser
  • The %2F is wrongly decoded before the URL is handed to the browser

(This does not occur when clicking the link in the Markdown preview.)

VS Code version: Code 1.47.3 (91899dc, 2020-07-23T13:12:49.994Z)
OS version: Windows_NT x64 10.0.18363

Activity

  1. added
    bug
    help wanted
    markdown-ext
    on Sep 5, 2020
  2. jeanp413 commented on Sep 7, 2020

    @jeanp413
    Contributor

    I was taking a look at this and found this is related to #85930

  3. tomerstav commented on Sep 12, 2020

    @tomerstav
    Contributor

    I was taking a look at this and found this is related to #85930

    Seems to be related to a larger issue #79474

  4. mjbvz commented on Oct 19, 2021

    @mjbvz
    Contributor

    Based on #79474 and #83645, I think this is a limitation of vscode.Uri and not something we can easily work around in the markdown extension (right now we use vscode.Uri.parse but I also tried using .with, which seems to cause its own set of issues)

    I'm going to close this issue since it has not gotten much attention since it was opened, but if anyone still wants to try looking into this, we'd still take PRs

  5. locked and limited conversation to collaborators on Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bughelp wantedmarkdown-ext

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions