Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special characters in file name should be encoded #34

Closed
pddg opened this issue Jul 13, 2021 · 2 comments
Closed

Special characters in file name should be encoded #34

pddg opened this issue Jul 13, 2021 · 2 comments

Comments

@pddg
Copy link

pddg commented Jul 13, 2021

Environment

  • macOS 11.4
  • VSCode 1.58.0
  • Git Web Links for VSCode 2.5.1

Expected behavior

There is a file with a name like the sample.json#etc.
The generated url for the file should be https://github.com/user/repo/blob/commit/sample.json%23etc.
This # is part of the filename, not a URL fragment, so it should be encoded.

Actual behavior

The generated url for the file is https://github.com/user/repo/blob/commit/sample.json#etc.
Therefore, it will not work as a correct link.

Note

Other characters that can be used in file names and are special in URLs (such as ? etc.) are not encoded as well.

@pddg pddg changed the title Generated url is not encoded Special characters in file name should be encoded Jul 13, 2021
@reduckted
Copy link
Owner

I've almost fixed this, but ran into a problem with opening the URL from within VS Code. Looks like it's related to these issues:

I'll investigate what workarounds I can put in place and hopefully get a fix out soon.

@reduckted
Copy link
Owner

Should now be fixed in v2.5.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants