You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
pddg
changed the title
Generated url is not encoded
Special characters in file name should be encoded
Jul 13, 2021
Environment
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.The text was updated successfully, but these errors were encountered: